python 2.5 and ast

Andrea Crotti andrea.crotti.0 at gmail.com
Mon Nov 28 06:45:57 EST 2011


I'm happily using the ast module to analyze some code,
but my scripts need also to run unfortunately on python 2.5

The _ast was there already, but the ast helpers not yet.
Is it ok if I just copy over the source from the ast helpers in my code base
or is there a smarter way?
(I don't even need all of them, just "parse" and NodeVisitor at the moment)



More information about the Python-list mailing list