[Zodb-checkins] CVS: Zope/lib/python/ZODB - Connection.py:1.77

Guido van Rossum guido@python.org
Fri, 04 Oct 2002 16:47:14 -0400


> Initialize _begun to 0, not None.

Yet another example of a Boolean variable that somehow used None and 1
as its two values.  Where does this idiom *come* from?  I've killed
several of these in ZEO.  Is there someone who believes that

  if x is None:

is faster than

  if not x:

???

--Guido van Rossum (home page: http://www.python.org/~guido/)