collecting variable assignments through settrace
skunkwerk
skunkwerk at gmail.com
Tue Jun 18 14:38:23 EDT 2013
Hi,
I'm writing a custom profiler that uses sys.settrace. I was wondering if there was any way of tracing the assignments of variables inside a function as its executed, without looking at locals() at every single line and comparing them to see if anything has changed.
Sort of like xdebug's collect_assignments parameter in PHP.
thanks,
imran
More information about the Python-list
mailing list