2023-08-01 21:46 UTC+02:00, Ronald Oussoren via Python-ideas
<python-ideas@python.org>:
>
>
>> On 1 Aug 2023, at 19:59, Mitch <mitchell.negus...@gmail.com> wrote:
>>
>> Is this a relevant argument (either way) here?
>
> Adding features to the language always has a cost in that it slightly
> complicates the language and makes it harder to teach. Because of that the
> bar for adding features is high.
>
> Showing how a new feature would improve realistic code patterns helps to
> defend to proposal.
>
> Ronald

To me it's a simplification of the language and its teaching because
it removes an exception (pun not intended).

A 'try' might be followed by some blocks:
- except with an exception
- bare except
- else
- finally

They are all optional. And if present, they must appear in that order.
They are optional, except for the 'else', which must follow either an
'except' with an exception, or a bare 'except'.
I think this could be made simpler by allowing 'else' without any 'except'.

Celelibi
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/ZNZN6ZVGOH3DVW2M7IJC3P7XEPZFK76Z/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to