True, False, None (was re. Pruss's manifesto)
Skip Montanaro
skip at pobox.com
Tue Nov 11 15:22:52 EST 2003
Thomas> A much better way to achieve the same goal would be to make the
Thomas> optimizer recognize that True isn't re-bound within the loop.
Easier said than done. Given:
while True:
foo()
how do you know that foo() doesn't twiddle Python's builtins?
Thomas> Making the optimizer better would improve the performance of
Thomas> much more code than just 'while True' loops.
What optimizer? ;-)
Skip
More information about the Python-list
mailing list