[issue35383] lib2to3 raises ParseError on argument called "print"

2019-01-13 Thread timokau
timokau added the comment: Also `print("a", file=sys.stderr)` *is* valid python2 provided that `print_function` is imported. -- ___ Python tracker <https://bugs.python.o

[issue35383] lib2to3 raises ParseError on argument called "print"

2019-01-13 Thread timokau
timokau added the comment: I disagree that this is "not a bug". While conversion from 2 to 3 is 2to3's main intention, the documentation advertises: 2to3 supporting library lib2to3 is, however, a flexible and generic library, so it is possible to write your own fixers for 2to