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
-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
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