Need Translation library

Chris Rebert clp2 at rebertia.com
Sat Aug 7 14:57:50 EDT 2010


On Sat, Aug 7, 2010 at 5:04 AM, siva moorthy <gnusiva at gmail.com> wrote:
> hi all,
> i wish to code for translation in python
>
> i want to parse a python program itself and make some keyword changes
> (replacement)
> tell me any library to parse python source code

Depending on you needs, one of:
http://docs.python.org/library/tokenize.html
http://docs.python.org/library/ast.html

Cheers,
Chris
--
http://blog.rebertia.com



More information about the Python-list mailing list