I have some features I need to add to lib2to3 to make it more useful for our purposes at work supporting our massive code base in a Python 2 to 3 transition. Which tree should I develop these and check these into?<div><br>
</div><div>cpython/default?</div><div><br></div><div>Can I backport this to 3.2 and 2.7? It counts as a feature addition which is normally a no-no for backports. But in this case I'm enhancing 2to3 which is a useful tool.</div>
<div><br></div><div>No big deal to me _personally_ if I can't backport from 3.3 (cpython/default) as I'd apply the changes to our copy at work internally but it seems wise to me for us to keep enhancing and improving 2to3 in a Python 2.x/3.x release independent manner to make people's conversions easier.</div>
<div><br></div><div>The features I want to commit (all pretty easy additions) are command line flag / constructor option support for:</div><div> 1) writing output files to a different directory tree instead of overwriting the input file.</div>
<div> 2) modifying the output filename by altering the suffix (.py -> .py3 for example)</div><div> 3) always writing output files even if there were no changes to make (useful in combination with the above to effectively act as a "copy library X to this directory converting it to python 3 syntax along the way").</div>
<div><br></div><div>The old <a href="http://hg.python.org/2to3/">http://hg.python.org/2to3/</a> tree exists but it really looks like an out of date version.</div><div><br></div><div>-gps</div><div><br></div>