Thoughts on PEP315

Neil Padgen neil.padgen at
Thu Sep 25 15:36:40 CEST 2003

>>>>> "Stephen" == Stephen Horne <$$$$$$$$$$$$$$$$$@$$$$$$$$$$$$$$$$$$$$> writes:

    Stephen> So a 'break if ... :' cannot accidentally metamorphose
    Stephen> into a 'break; if ... :'.

It can if you press return at the wrong place:

    while True:
        blah ; blah ; blah
    if condition:
        blah ; blah ; blah

This would be perfectly legal if the new-style while loop were in
another loop.

-- Neil

More information about the Python-list mailing list