On Mon, 4 Oct 2021 12:18:35 -0400
Calvin Spealman <firstname.lastname@example.org> wrote:
> On Mon, Oct 4, 2021 at 12:07 PM Guido van Rossum <email@example.com> 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,
How so? If style checkers are already able to check whitespace around
operators, they should be to check whitespace in this instance as well.
Do you suggest that PEP 8 violations should be detected by the Python
1) I was basing the "can't enforce" on Guido's "
You can't do that with our current lexer+parser."
2) Of course PEP 8 violations shouldn't be checked by the parser. That's why they're PEP 8 and not syntax rules.
However, this doesn't look like style. This syntax is modifying either the `except` keyword for the exception type
associated with it.
Which does it modify? That the asterisk can be on either side of the whitespace feels very odd, in general but
especially for Python syntax. That's why I'd opt for a variation that is either unambiguously attached to the left or right,
or which is not connected to either, like the very clear `except group E` proposal.
Python-Dev mailing list -- firstname.lastname@example.org
To unsubscribe send an email to email@example.com
Message archived at https://firstname.lastname@example.org/message/ZLU5NYXVRCUM7AEEN55ITUQO43VDY6RE/
Code of Conduct: http://python.org/psf/codeofconduct/