[Zope-dev] Coding style clarifications

Christian Theune ct at gocept.com
Fri Feb 20 13:35:25 EST 2009


On Fri, 2009-02-20 at 18:18 +0100, Martijn Faassen wrote:
> We discovered this when Christian Theune said he wanted his package 
> __init__.py empty as otherwise he runs into circular import issues. Some 
> of the others including myself were puzzled as we put APIs in 
> __init__.py quite frequently without such problems. Turned out it was 
> because he is using the same convention for imports you do, and we weren't.

The conclusion that I took from that round was that either approach
works reasonably well (with its own limitations) by itself, but mixing
them increases the chance for import problems a lot.

Christian

-- 
Christian Theune · ct at gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 7 · fax +49 345 1229889 1
Zope and Plone consulting and development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20090220/e6567028/attachment.bin 


More information about the Zope-Dev mailing list