Invoking Python from Python

B Mahoney mrbmahoney at gmail.com
Wed Nov 9 12:36:10 EST 2005


I also think something along the lines of execfile() may serve the
original poster. There was a  thread last month about compile()
and exec() with a concise example from  Fredrik Lundh.
Google "Changing an AST" in this group.

With dynamically generated code I prefer the separate compile()
step so that I can catch the compile exceptions separately.




More information about the Python-list mailing list