[Python-ideas] try-else without except or finally
Yuval Greenfield
ubershmekel at gmail.com
Thu Nov 10 14:13:53 CET 2011
On Nov 10, 2011 3:05 PM, "Steven D'Aprano" <steve at pearwood.info> wrote:
>
> Matt Joiner wrote:
>>
>> Hi Ideas,
>>
>> I frequently find myself in the following situations:
>>
>> 1) I wish to do something if no exception is thrown, for instance:
>
> [...]
>
>> I propose that the except clause be optional.
>
>
>
> I too have been in the situation of wanting an else clause and a finally
clause, but no except clause.
>
>
"Try...else..." doesn't make any sense without the except jn my eyes. The
"else" has to conjugate something.
-1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20111110/00ab8030/attachment.html>
More information about the Python-ideas
mailing list