[Python-ideas] for/else syntax

Gerald Britton gerald.britton at gmail.com
Wed Oct 7 15:10:00 CEST 2009


Are you sure?  Under what conditions would the "finally" clause be bypassed?

On Thu, Oct 1, 2009 at 9:35 PM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> 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
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas
>



-- 
Gerald Britton



More information about the Python-ideas mailing list