[Tutor] combining Python 2.x and Python 3
Alan Gauld
alan.gauld at btinternet.com
Tue Mar 17 21:51:43 CET 2009
"Andre Engels" <andreengels at gmail.com> wrote
>I have an open source project I have done some work on, which is
> programmed in Python 2.3-2.6. I would like to change it so that it
> can
> be run under both Python 3 and Python 2.x.
That will be tricky. I think you can pretty much make Python 3 code
that can run under v2.6. But I doubt you can make it run under
anything older. There are too many new syntax features - just
think about the difference in input() and print()... That's all your
user
I/O operations affected for starters!
Maybe a Tkinter GUI could be made to work though?
Alan G.
More information about the Tutor
mailing list