[Python-ideas] try-else without except or finally
Steven D'Aprano
steve at pearwood.info
Thu Nov 10 14:04:34 CET 2011
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.
+1 on allowing else without an except.
--
Steven
More information about the Python-ideas
mailing list