[docs] [issue13231] sys.settrace - document 'some other code blocks' for 'call' event type

anatoly techtonik report at bugs.python.org
Thu Oct 20 09:40:21 CEST 2011


New submission from anatoly techtonik <techtonik at gmail.com>:

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

----------
assignee: docs at python
components: Documentation
messages: 146009
nosy: docs at python, techtonik
priority: normal
severity: normal
status: open
title: sys.settrace - document 'some other code blocks' for 'call' event type

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13231>
_______________________________________


More information about the docs mailing list