[Zope3-dev] __init__.py interfaces.py guidelines?

Gary Poster gary at zope.com
Mon Nov 21 12:34:35 EST 2005


On Nov 21, 2005, at 12:29 PM, Jean-Marc Orliaguet wrote:

>
> There is another place where there seems to be two different  
> patterns too:
>
> sometimes we have:
>
>   import zope.schema
>   name = zope.schema.TextLine(...)
>
> and sometimes:
>
>   from zope.schema import TextLine
>   name = TextLine(...)

FWIW, a third is

   from zope import schema

which I often do for zope.component, zope.interface, zope.event, and  
zope.schema.

I'm not weighing in on the style issues.

Gary


More information about the Zope3-dev mailing list