[issue34013] Inconsistent SyntaxError for print

Irit Katriel report at bugs.python.org
Mon Jul 26 18:51:34 EDT 2021


Irit Katriel <iritkatriel at gmail.com> added the comment:

This case has changed recently, and not for the better:

>>> print f(3)
  File "<stdin>", line 1
    print f(3)
    ^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34013>
_______________________________________


More information about the Python-bugs-list mailing list