[issue35260] 2to3 Parse Error on Python 3 print() with arguments
Mark Dickinson
report at bugs.python.org
Fri Nov 16 06:22:39 EST 2018
Mark Dickinson <dickinsm at gmail.com> added the comment:
I'm not sure I understand the report: 2to3 expects a valid Python 2 file as input, and the file a.py isn't a valid Python 2 file: the `print` line is a SyntaxError in the absence of a `from __future__ import print_function`.
So yes, this *is* being treated like Python 2 code, but that's what 2to3 is designed to do.
Can you say what you expected to happen here?
----------
nosy: +mark.dickinson
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35260>
_______________________________________
More information about the Python-bugs-list
mailing list