On 2016-02-09 08:22, Wilfred van Rooijen wrote:
There are many "gotchas" going from Python 2 to Python 3 - with the
change from "print" to "print()" being by far the most irritating (and
the most stringently enforced by the Python interpreter). There are
several IDEs which can highlight problems and give tips to migrate
from Python 2 to Python 3
py2to3 is a command line program that will tell you most of the gotchas
in a Python 2 program to their Python 3 program, and (with the -w flag)
automagically make the changes:
https://docs.python.org/3/library/2to3.html
I think the only thing it didn't completely fix in several large
programs we ran through it was the encoding conversion of
stdin/stdout/stderr. As I recall, it has something to do with Python
trying to detect the encoding in the shell environment.
Mike Maxwell
--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex