Message146009
http://docs.python.org/library/sys.html#sys.settrace
While writing settrace function you need to know what kind of data is expected and how to get more information about it. Current documentation for sys.settrace doesn't give too much answers. To improve that situation at least with 'call' event:
1. Link 'frame' to the middle of table on inspect module page [1]
2. List all possible 'code blocks' for 'call' event (I know there is module in addition to function)
3. Provide example how to extract popular data for corresponding 'code block' (name for functions, name for modules, name for classes/methods, relative file path, line no, how to detect labmbda function) in a safe manner (inspect page contains some FUD about memory usage)
1. http://docs.python.org/library/inspect#types-and-members |
|
Date |
User |
Action |
Args |
2011-10-20 07:40:21 | techtonik | set | recipients:
+ techtonik, docs@python |
2011-10-20 07:40:21 | techtonik | set | messageid: <1319096421.5.0.420840017987.issue13231@psf.upfronthosting.co.za> |
2011-10-20 07:40:20 | techtonik | link | issue13231 messages |
2011-10-20 07:40:20 | techtonik | create | |
|