James Tauber

journeyman of some

blog > 2006 > 02 >

James Tauber's Blog 2006/02/15

Are Absolute Imports Available in Python 2.4 or Not?

PEP 328 looks like it will solve my recent import issues.

However, the PEP mentions that

In Python 2.4, you must enable the new absolute import behavior with from __future__ import absolute_import

which got me excited because it means I don't need to wait for Python 2.5 to take advantage of it.

However

from __future__ import absolute_import

gives

SyntaxError: future feature absolute_import is not defined

So that part of PEP 328 was just teasing me. I think it's an error in the PEP.

by James Tauber : Created on Feb. 15, 2006 : Last modified Feb. 15, 2006 : Categories python pyworks : 2 comments (permalink)

First Pass of Demokritos Persistence Done

@84 on the Demokritos trunk now has full persistence of members and collections into a subversion repository.

At the moment there's no caching (so subversion gets hit every request) and transactions are overly granular. As a result, performance isn't great. But it seems to work!

by James Tauber : Created on Feb. 15, 2006 : Last modified Feb. 15, 2006 : Categories python subversion atompub demokritos : (permalink)