[Tutor] combining Python 2.x and Python 3

Kent Johnson kent37 at tds.net
Tue Mar 17 13:59:20 CET 2009


On Tue, Mar 17, 2009 at 7:33 AM, 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. Two questions for that:
> * is there a place where I can find an overview of what to do to make
> such a change?

A very brief overwiew here:
http://docs.python.org/3.0/whatsnew/3.0.html#porting-to-python-3-0

There are quite a few porting anecdotes in blogs, etc. Some googling
should turn them up.

> * is there a way to check, on one computer, the code under both
> versions (I am using Windows Vista, in case it matters)?

You can install Python 2.x and 3.0 on the same computer, no problem.

Kent


More information about the Tutor mailing list