[issue34013] Inconsistent SyntaxError for print
Dong-hee Na
report at bugs.python.org
Sun Jul 1 09:56:12 EDT 2018
Dong-hee Na <donghee.na92 at gmail.com> added the comment:
>>> class Foo:
... pass
...
>>> print Foo().header(a=foo(1))
File "<stdin>", line 1
print Foo().header(a=foo(1))
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(Foo().header(a=foo(1)))?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34013>
_______________________________________
More information about the Python-bugs-list
mailing list