[Zope3-dev] __init__.py interfaces.py guidelines?

Benji York benji at zope.com
Tue Nov 22 16:51:55 EST 2005


Jim Fulton wrote:
> Dieter Maurer wrote:
> 
>> Jim Fulton wrote at 2005-11-21 09:43 -0500:
>> 
>>> Absolute always.  Until the Python import mechanism is fixed,
>>> *always* use absolute imports.
>> 
>> But, this will make refactoring (moving modules around in the
>> package hierarchy) more difficult.
> 
> It only makes moving packages around harder.  If your package
> hierarchy is deep enough that this matters, then I suggest that your
> package hierarchy is too deep.

Actually it makes moving packages around easier because you have a more 
unique string to do search-replace on.
-- 
Benji York
Senior Software Engineer
Zope Corporation


More information about the Zope3-dev mailing list