Issue 32532: improve sys.settrace and sys.setprofile documentation (original) (raw)

Issue32532

Created on 2018-01-11 06:25 by xiang.zhang, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 5359 merged xiang.zhang,2018-01-27 14:34
Messages (4)
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.
msg310261 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2018-01-18 23:59
There are some issues in the documentation for this function (slightly related) to this described here: https://bugs.python.org/issue17799. I can update the PR linked to that issue with this information as well.
msg310377 - (view) Author: Xiang Zhang (xiang.zhang) * (Python committer) Date: 2018-01-21 16:20
Hi Pablo, it would be nice. But for #17799, I don't know actually which part should be fixed, doc or code? I think it's better to consult gurus on python-dev mail list.
msg310863 - (view) Author: Xiang Zhang (xiang.zhang) * (Python committer) Date: 2018-01-27 15:04
New changeset 60da99b8e2f7bf497569ae4d6c218866575729bf by Xiang Zhang in branch 'master': bpo-32532: Improve documentation of settrace and setprofile (#5359) https://github.com/python/cpython/commit/60da99b8e2f7bf497569ae4d6c218866575729bf
History
Date User Action Args
2022-04-11 14:58:56 admin set github: 76713
2018-01-27 15:05:37 xiang.zhang set status: open -> closedresolution: fixedstage: patch review -> resolved
2018-01-27 15:04:49 xiang.zhang set messages: +
2018-01-27 14:34:05 xiang.zhang set keywords: + patchstage: needs patch -> patch reviewpull_requests: + <pull%5Frequest5204>
2018-01-21 16:20:25 xiang.zhang set messages: +
2018-01-18 23:59:20 pablogsal set nosy: + pablogsalmessages: + versions: + Python 3.7
2018-01-11 06:25:56 xiang.zhang create