[Zope3-dev] __init__.py interfaces.py guidelines?
Jean-Marc Orliaguet
jmo at ita.chalmers.se
Mon Nov 21 08:43:10 EST 2005
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?
- public interfaces are stored in interfaces.py
- private interfaces are written along with the implementation code
- what about file names with an underscore at the beginning? They are
used in zope.schema for instance
- what about import paths inside a same package: relative or absolute?
from mypackage.interfaces import ISomeInterface
or:
from interfaces import ISomeInterface
regards
/JM
More information about the Zope3-dev
mailing list