diff options
author | Mario Corchero <mcorcherojim@bloomberg.net> | 2020-11-04 09:27:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-04 09:27:43 (GMT) |
commit | 0001a1b69ecda47b0406daa88c2943877580bcae (patch) | |
tree | 3b9a00c8fc1c9602aa77313e029330b43d81bd93 /Misc | |
parent | db6434c474f7389a98b8118ca87fca988416bf33 (diff) | |
download | cpython-0001a1b69ecda47b0406daa88c2943877580bcae.zip cpython-0001a1b69ecda47b0406daa88c2943877580bcae.tar.gz cpython-0001a1b69ecda47b0406daa88c2943877580bcae.tar.bz2 |
bpo-42251: Add gettrace and getprofile to threading (GH-23125)
This allows to retrieve the functions that were set in these two, which might differ from sys.gettrace and sys.getprofile within a thread.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2020-11-03-14-15-35.bpo-42251.6TC32V.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-11-03-14-15-35.bpo-42251.6TC32V.rst b/Misc/NEWS.d/next/Library/2020-11-03-14-15-35.bpo-42251.6TC32V.rst new file mode 100644 index 0000000..7435c83 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-11-03-14-15-35.bpo-42251.6TC32V.rst @@ -0,0 +1,3 @@ +Added :func:`threading.gettrace` and :func:`threading.getprofile` to +retrieve the functions set by :func:`threading.settrace` and +:func:`threading.setprofile` respectively. Patch by Mario Corchero. |