On Mon, Oct 4, 2021 at 12:48 PM Antoine Pitrou <antoine@python.org> wrote:
On Mon, 4 Oct 2021 12:18:35 -0400 Calvin Spealman <cspealma@redhat.com> wrote:
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,
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 parser itself?
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 -- python-dev@python.org To unsubscribe send an email to python-dev-leave@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/ZLU5NYXV... Code of Conduct: http://python.org/psf/codeofconduct/
-- CALVIN SPEALMAN SENIOR QUALITY ENGINEER calvin.spealman@redhat.com M: +1.336.210.5107 [image: https://red.ht/sig] <https://red.ht/sig> TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>