Pablo Galindo Salgado <[email protected]> added the comment:
Let's step back a bit and focus on the issue at hand. The problem is the
following:
* We **already** have a warning for the print statement without parens:
Python 3.9.1 (default, Dec 14 2020, 11:49:16)
[Clang 12.0.0 (clang-1200.0.32.27)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> print x
File "<stdin>", line 1
print x
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(x)?
This is achieved by inspecting the syntax error and checking some conditions,
which I personally find it uglier than a resilient grammar rule.
* The question is if we want to make the rule more resilient or delete it
whatsoever. The status quo doesn't seem like a good fit
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue34013>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com