[Zope3-dev] adding interface imports to __init__.py

Jim Fulton jim at zope.com
Mon May 10 05:32:58 EDT 2004


Garrett Smith wrote:
> I know we're pushing toward a beta release, and there's plenty of other 
> work to do, but...
> 
> I'm starting to add interface imports to my __init__.py files to avoid 
> the _massive_ propogation of the word 'interfaces' throughout our 
> sourcecode. I'm really, really like the result.
> 
> In the spirit of the namegeddoning of late, is this something to 
> consider for Zope? For example:
> 
>   zope.app.annotation.interfaces.IAttributeAnnotatable
> 
> becomes:
> 
>   zope.app.annotation.IAttributeAnnotatable
> 
> Note that I'm suggesting adding imports to __init__.py, not doing away 
> with the interface modules.

I like this, but only for interfaces that will be imported externally
and mainly for interfaces that are imported a lot.

Jim


-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org




More information about the Zope3-dev mailing list