Jean-Marc Orliaguet wrote:
Jim Fulton wrote:

Jean-Marc Orliaguet wrote:


OK, so to summarize this  thread:

- __init__.py files are empty

unless for the convenient import of other modules located in the same package or in a subpackage?



Actually, primarily for convenient import by external packages.



yes indeed, but no "cross" imports between packages that are siblings.

Huh? Why? I'm not at all sure I know what you mean.


and in both cases the import is done using absolute paths.

All imports should be absolute.

...
Absolute always.  Until the Python import mechanism is fixed, *always*
use absolute imports.
...
that's definitely not the way it is currently...

do a:

$ grep -r "from interfaces import" Zope3/src

Dang. That code should be fixed.

Jim

--
Jim Fulton           mailto:[EMAIL PROTECTED]       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org
_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to