How can we start to revive this PEP? And I completely agree, making the syntax `... except ... with ...` is much better than `eor`. On Thu, Aug 6, 2020 at 7:05 PM Rob Cliffe via Python-ideas < python-ideas@python.org> wrote:
Have a look at PEP 463, which looks into this in some detail. I wish this PEP had gained more traction. Sooner or later, everyone wants an expression form of a try/except.
When it comes to expressing "in the event of this exception, I want this default", exception expressions read much more nicely than an equivalent
On 06/08/2020 21:24, raymond.hettinger@gmail.com wrote: try/except block.
Also, new syntax would keep the rest of the language clean so that don't
end up adding dozens of get() methods. Or r having us expand function signatures with default arguments, like min() and max() functions for example.
It would be great if this PEP were to be resurrected.
+1. Rob Cliffe _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-leave@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/EODX4W... Code of Conduct: http://python.org/psf/codeofconduct/
-- Cheers, Jonathan