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

2005-11-22 Thread Jim Fulton
Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 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

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

2005-11-21 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 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

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

2005-11-21 Thread Chris Withers
Tres Seaver wrote: It is also ever-so-slightly faster, as it avoids a name lookup at point-of-use. That optimization is the source of only downside of the practice: it makes monkey-patching harder, And that's a bad thing? ''+str(whrandom.choice())+' wink' Chris -- Simplistix - Content