Re: Compiler.ast helper function "literal_eval" in python 2.4

2009-09-17 Thread Gabriel Genellina
En Fri, 04 Sep 2009 18:43:28 -0300, Sean Talts escribió: I'm trying to parse some python with the compiler module, select a subset of the AST returned, and then evaluate that subset, all in python 2.4. It seems like in python 2.6 the compiler.ast.literal_eval function may be what I'm looking

Compiler.ast helper function "literal_eval" in python 2.4

2009-09-04 Thread Sean Talts
Hi, I'm trying to parse some python with the compiler module, select a subset of the AST returned, and then evaluate that subset, all in python 2.4. It seems like in python 2.6 the compiler.ast.literal_eval function may be what I'm looking for, but unfortunately for my project we are restricted t