classification
Title: improve sys.settrace and sys.setprofile documentation
Type: enhancement Stage: needs patch
Components: Documentation Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, xiang.zhang
Priority: normal Keywords: easy

Created on 2018-01-11 06:25 by xiang.zhang, last changed 2018-01-11 06:25 by xiang.zhang.

Messages (1)
msg309793 - (view) Author: Xiang Zhang (xiang.zhang) * (Python committer) Date: 2018-01-11 06:25
I propose to mention the behaviour that "if exception raised in tracefunc or profilefunc, the handler will be unset" in the documentation of sys.settrace and sys.setprofile. I encounter this behaviour and surprised by it since I can't get the info from the doc. Only by digging into the source code, I can find out why the profile messages suddenly disappear.
History
Date User Action Args
2018-01-11 06:25:56xiang.zhangcreate