Better way of getting parsed Python rather than an AST?

Kenneth McDonald kenneth.m.mcdonald at sbcglobal.net
Sat Oct 9 21:09:45 EDT 2004


Can anyone recommend something which will do one of the
following:

   1) Parse a Python file into an "object-oriented" syntax
      tree of some sort (eg. with function definitions represented
      by a "FunDef" class, etc.)

or

   2) Take an AST as produced by the Python AST module, and
      convert it into a "friendlier" form. Unless I'm missing something,
      the builtin AST representation seems somewhat, um, low-level.

I try to check the newsgroup regularly, but email as well as
a posting response would be greatly appreciated.

Thanks,
Ken McDonald
kenneth.m.mcdonald at sbcglobal.net



More information about the Python-list mailing list