
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.57@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