[issue35260] 2to3 Parse Error on Python 3 print() with arguments

Mark Dickinson report at bugs.python.org
Fri Nov 16 08:03:13 EST 2018


Mark Dickinson <dickinsm at gmail.com> added the comment:

I'm still confused: the main purpose of 2to3 is to take Python 2 code and turn it into Python 3 code. The docs[1] are fairly unambiguous here:

> 2to3 is a Python program that reads Python 2.x source code and applies a series of fixers to transform it into valid Python 3.x code.

So expecting 2to3 *not* to parse code as though it's Python 2 code seem odd.

[1] https://docs.python.org/3.7/library/2to3.html

----------

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


More information about the Python-bugs-list mailing list