while True or while 1

Christian Heimes lists at cheimes.de
Tue Dec 14 13:38:59 EST 2010


Am 14.12.2010 17:52, schrieb Arnaud Delobelle:
> You also need to initialise False to False for it to be really
> robust. So something like this will do.
> 
>     True = not 0
>     False = not True
>     while True:
>         ...
>         True = False

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.

Christian




More information about the Python-list mailing list