[Python-ideas] Single line single expression try/except syntax
Ben Rudiak-Gould
benrudiak at gmail.com
Sun Jan 27 22:21:36 EST 2019
Aren't the arguments for accepting PEP 463 basically the same as the
arguments for accepting assignment expressions? The current syntax is
painfully verbose and people use inefficient and ad hoc constructions to
get around it. Better to have a language feature to support the way that
people actually want to write code.
If Guido wrote that rejection of PEP 463 then I can't help thinking that he
changed his perspective between then and PEP 572 and might have
accepted PEP 463 if it had been proposed more recently. (I'm aware of the
drama surrounding PEP 572, but still.)
On Sun, Jan 27, 2019 at 1:04 PM Michael Selik <mike at selik.org> wrote:
> Any discussion of except expressions should reference PEP 463 and respond
> to the arguments there.
>
> https://www.python.org/dev/peps/pep-0463/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20190127/d5b31919/attachment.html>
More information about the Python-ideas
mailing list