why no break N levels, as in other leading languages?
Evan Simpson
evan at 4-am.com
Mon May 5 11:28:34 EDT 2003
laotseu wrote:
> Reminds me of an evil (tm) statement known in some others languages.
> Should I name it ?-)
Assuming that you're serious, you've misunderstood the proposal.
try..continue is *less* like the statement considered harmful than
try...except is. It is restricted to the current lexical scope, that
is, you can't "break 'foo'" out of a function. Any attempt to break
with a label that doesn't match a lexically enclosing continue clause is
a SyntaxError.
Cheers,
Evan @ 4-am
More information about the Python-list
mailing list