Thoughts on PEP315

Neil Padgen neil.padgen at mon.bbc.co.uk
Thu Sep 25 15:36:40 CEST 2003


>>>>> "Stephen" == Stephen Horne <$$$$$$$$$$$$$$$$$@$$$$$$$$$$$$$$$$$$$$.co.uk> 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
    break
    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