andrea crotti andrea.crotti.0 at gmail.com
Thu Feb 17 11:11:56 CET 2011

What would be an almost automated way to develop for both python 2.x and

2to3 apparently can only output a diff or write directly on the file (with
-w), but why doesn't it output the resulting file for 3.x instead?

So for a single python file I tried a makefile like:

all: empathy.py
    cp empathy.py empathy3.py
    2to3 -w empathy3.py

But maybe there's a better way using python tools...

Then after that how do I test the various versions with the various python
versions in a portable way?

I could just have a bash script that calls

python2 empathy.py
python3 empathy3.py

but it's probably not very portable..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110217/64d15474/attachment.html>

More information about the Python-list mailing list