Having had no particular reason not to, I have released 3to2 version 1.0.
Download it from Bitbucket:
2.7 version here
3.1 version here
PyPI:
3.1 package is called “3to2_py3k”
2.7 package is called “3to2”
Bug tracker is at http://bitbucket.org/amentajo/lib3to2/issues; submit a bug report if something either goes wrong or doesn’t go right! (Or you can comment here or contact me directly via some other means)
neat. is this based on lib2to3 (did you just modify the grammar and add new rewriters, or is did you also implement new support code)? also, what’s the licence? thanks! andrew
Comment by andrew cooke — October 29, 2010 @ 7:29 am
It uses lib2to3′s fixer mechanism as a dependency; the lib2to3 grammar is a hybrid of Python 2 and Python 3, so the primary work of lib3to2 is the new fixers/rewriters.
It’s released under Apache License 2.0.
Comment by AirBreather — October 29, 2010 @ 8:33 am
sweet (also, thanks for the info on the 2to3 grammar, which actually means I don’t need this!
)
Comment by andrew cooke — October 29, 2010 @ 2:10 pm
This is a very interesting concept. If I understand correctly what you mean, people could develop in Python 3 and use this tool to keep a Python 2 version in sync. I hope that helps speed up adoption of Python 3. Congratulations for your work!
Comment by Fernando Correia — October 29, 2010 @ 2:35 pm