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 | [EMAIL PROTECTED] | Brisbane, Australia --------------------------------------------------------------- http://boredomandlaziness.skystorm.net -- http://mail.python.org/mailman/listinfo/python-list