[Python-ideas] for/else syntax

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Oct 2 03:35:54 CEST 2009


Yuvgoog Greenle wrote:
> This
> construct should have been named "finally", "didnt_break" or "not break":

"finally" would be at least as confusing as "else",
since by analogy with try-finally it suggests that
it will *always* be executed, which isn't the case.

-- 
Greg



More information about the Python-ideas mailing list