[issue34013] Inconsistent SyntaxError for print
Irit Katriel
report at bugs.python.org
Wed Feb 17 08:15:54 EST 2021
Irit Katriel <iritkatriel at yahoo.com> added the comment:
Still the same in 3.10:
Python 3.10.0a5+ (heads/master:bf2e7e55d7, Feb 11 2021, 23:09:25) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print 3
File "<stdin>", line 1
print 3
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(3)?
>>> def f(x): return x
...
>>> print f(3)
File "<stdin>", line 1
print f(3)
^
SyntaxError: invalid syntax
----------
nosy: +iritkatriel
versions: +Python 3.10 -Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34013>
_______________________________________
More information about the Python-bugs-list
mailing list