while True or while 1
Hans-Peter Jansen
hpj at urpla.net
Wed Dec 15 08:10:43 EST 2010
On Tuesday 14 December 2010, 21:38:47 Arnaud Delobelle wrote:
> Christian Heimes <lists at cheimes.de> writes:
> [...]
>
> > Tres Seavers once told me a joke like this:
> >
> > True = not not "Who's at the door?" # say it out loud!
> >
> > This was back in the old days of Zope 2.5 and Python 2.1, which
> > didn't have True and False.
>
> I almost used:
>
> True = "to be" or not "to be" # that is the question
That's wrong:
>>> "to be" or not "to be"
'to be'
You need to wrap it with bool() at least (even without interpreting
Pythons answer to the duality contradiction of consciousness for
now ;-))
> but didn't dare!
Pete
More information about the Python-list
mailing list