On Tuesday 14 December 2010, 21:38:47 Arnaud Delobelle wrote: > Christian Heimes <li...@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 -- http://mail.python.org/mailman/listinfo/python-list