while 1 vs while True
Nick Coghlan
ncoghlan at iinet.net.au
Mon Dec 13 10:09:26 CET 2004
Dan Bishop wrote:
>>Out of pure curiousity,
>>Why wasn't 'While True' optimized also?
>
>
> Probably has something to do with "True" and "False" not being
> constants.
Yup. Even 'None' only just became a constant in 2.4.
I don't know if 'True' and 'False' are in line for similar treatment (there are
obvious backwards compatibility issues in doing so).
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at email.com | Brisbane, Australia
---------------------------------------------------------------
http://boredomandlaziness.skystorm.net
More information about the Python-list
mailing list