Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #48657
| 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> |
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 | Next — Next in thread | Find similar | Unroll 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