开发者

Is there a tool to do ast 2 python source code for Python 2.x?

I've seen codegen http://de开发者_JS百科v.pocoo.org/hg/sandbox/file/868ea20c2c1d/ast/ but doent works with all the files and ast2src which only works with Python 3.1.


Ive patched codegen con make it work with my sources: http://svn.juanjoconti.com.ar/dyntaint/trunk/wrapstrings/gen/


You could convert the 3.1 source to 2x using 3to2.

It's a utility for back-porting python3 scripts back to python2.

Note: 3to2 isn't the standard user-submitted PYPI project. It has been vetted by the core dev team and was the one of the Google Summer of Code projects last year

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜