On Mon, Oct 4, 2021 at 12:07 PM Guido van Rossum <guido@python.org> wrote:
The question was about which style to *recommend* (a la PEP-8).

I think the very fact that it can't (or is difficult) be enforced, and so in the wild we'll likely see variations that could lead to confusion, is enough reason to find an alternative syntax.
On Mon, Oct 4, 2021 at 8:03 AM Jonathan Goble <jcgoble3@gmail.com> wrote:
On Mon, Oct 4, 2021 at 1:24 AM Guido van Rossum <guido@python.org> wrote:
On Sun, Oct 3, 2021 at 9:20 PM Jonathan Goble <jcgoble3@gmail.com> wrote:
Therefore my vote is for requiring `except* E` and keeping `except *E` as a SyntaxError.

You can't do that with our current lexer+parser.

Then what is the purpose of this thread? I understood from the OP that the question was which to allow and which to prohibit. If it's impossible to require either or prohibit either because the lexer/parser can't tell the difference, then it's going to end up as a never-ending style argument just like C pointers, so what are we even discussing? (Other than an entirely different syntax, of course, which now seems like the logical way to go if we can't enforce a single way to do it with the original proposal.)

--Guido van Rossum (python.org/~guido)
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-leave@python.org
Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/DASEBDJ6CK6U4YHRKPJ7CNQQHVWEWOLQ/
Code of Conduct: http://python.org/psf/codeofconduct/




calvin.spealman@redhat.com  M: +1.336.210.5107