[New-bugs-announce] [issue42251] Add threading.gettrace and threading.getprofile

Mario Corchero report at bugs.python.org
Tue Nov 3 08:15:23 EST 2020


New submission from Mario Corchero <mariocj89 at gmail.com>:

When working in a C extension from a non-python created thread which calls PyGILState_Ensure as it later calls a Python callback on user code, I wished there was a way to set the trace function similar to what a native Python thread would do.

We could just call sys.gettrace within the thread, but the application might have chosen to set threading.settrace differently.

Same applies for threading.setprofile.

----------
components: Library (Lib)
messages: 380273
nosy: mariocj89
priority: normal
severity: normal
status: open
title: Add threading.gettrace and threading.getprofile
versions: Python 3.10

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42251>
_______________________________________


More information about the New-bugs-announce mailing list