What would be an almost automated way to develop for both python 2.x and 3.x?
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: Makefile: 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..
-- http://mail.python.org/mailman/listinfo/python-list