displaying execution of Python code

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Fri Apr 4 01:39:57 CEST 2008


En Thu, 03 Apr 2008 18:13:25 -0300, noahwatkins <noahwatkins at gmail.com>  
escribió:

> More technically, I am looking for direction on where to start looking
> in the Python libraries for a functionality that will allow me to
> execute arbitrary Python code from within a Python application.
> Additionally, I need to be able to have the ability to get information
> and perform actions (e.g. line number currently executing) as the code
> executes.

See the trace module and the sys.settrace hook.

-- 
Gabriel Genellina




More information about the Python-list mailing list