[Zope3-dev] Re: adding interface imports to __init__.py
Tres Seaver
tseaver at zope.com
Mon May 10 14:35:47 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.
+1 for interfaces which form the "exported" API of a package (also for
permissions and exceptions!)
Tres.
--
===============================================================
Tres Seaver tseaver at zope.com
Zope Corporation "Zope Dealers" http://www.zope.com
More information about the Zope3-dev
mailing list