Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #48657

collecting variable assignments through settrace

Newsgroups comp.lang.python
Date 2013-06-18 11:38 -0700
Message-ID <0fd5f976-d22c-497d-b829-54ec881c3b6f@googlegroups.com> (permalink)
Subject collecting variable assignments through settrace
From skunkwerk <skunkwerk@gmail.com>

Show all headers | View raw


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

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

collecting variable assignments through settrace skunkwerk <skunkwerk@gmail.com> - 2013-06-18 11:38 -0700
  Re: collecting variable assignments through settrace Terry Reedy <tjreedy@udel.edu> - 2013-06-18 17:47 -0400

csiph-web