Loop until condition is true

Mike Meyer mwm at mired.org
Thu Jun 23 17:38:16 CEST 2005

Stelios Xanthakis <sxanth at ceid.upatras.gr> writes:

> Michael Hoffman wrote:
>> Stelios Xanthakis wrote:
>>> Magnus Lycka wrote:
>>  >
>>>> Right. Silly me. Maybe in some future Python version, True and False
>>>> will be constants, like None is since Python 2.4.
>>> Actually, there is support in marshal to write True and False objects so
>>> I don't understand why this isn't in 2.4
>> Because it would break existing code.
> Yes.  Code that has variables named 'True' and 'False'.

Making None a constant broke existing code (and I just saw old code
that assigned to None). Are True and False that much more common as
variable names than None?

Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

More information about the Python-list mailing list