Re: Getting namespaces right when parsing/executing Python ASTs

2008-10-07 Thread Gordon Fraser
on > > On Tue, Oct 7, 2008 at 1:26 PM, Gordon Fraser <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I'm trying to parse Python code to an AST, apply some changes to the AST > > and then compile and run the AST, but I'm running into problems when

Getting namespaces right when parsing/executing Python ASTs

2008-10-07 Thread Gordon Fraser
Hi, I'm trying to parse Python code to an AST, apply some changes to the AST and then compile and run the AST, but I'm running into problems when trying to evaluate/execute the resulting code object. It seems that the global namespace differs depending on where I call parse and eval/exec. The fol