[Python-ideas] try-else without except or finally

Giampaolo Rodolà g.rodola at gmail.com
Mon Nov 14 15:25:05 CET 2011


2011/11/14 alex23 <wuwei23 at gmail.com>:
> On Nov 11, 1:53 am, Guido van Rossum <gu... at python.org> wrote:
>> +1. Nobody's going to understand try...else... on first reading.
>
> On the other hand, no one properly understands for...else... when
> first encountering it either.

I see no value in adding another hardly understandable construct.
Plus, in my mind try/else appears to be logically different than
for/else (which I find very useful).
-1

--- Giampaolo
http://code.google.com/p/pyftpdlib/
http://code.google.com/p/psutil/



More information about the Python-ideas mailing list