Parsing Python code with a Python Program

pgw a6c21487 at telus.net
Sun Aug 22 19:31:00 EDT 2004


Hello,

I would like to pass strings to a Python
application and have them executed as though
they were lines of code.

Is 'exec()' the function that I am looking for
and/or is there an example of this somewhere?

Thanks,

Seaweed




More information about the Python-list mailing list