This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients fabioz, vstinner
Date 2020-03-13.15:50:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Fabio: I added _PyEval_SetProfile() and _PyEval_SetTrace() which take a tstate parameter. These functions have a constraint: the caller must hold the GIL. Is it an acceptable constraint for you?

That's not something new, it's already the code in Python 3.8, it's just that it wasn't documented. In Python 3.7, it was less important: Python 3.8 added a call to PySys_Audit() which can execute arbitrary Python code.

Anyway, touching Python internals without holding the GIL is risky: see bpo-1021318 for example.
Date User Action Args
2020-03-13 15:50:27vstinnersetrecipients: + vstinner, fabioz
2020-03-13 15:50:27vstinnersetmessageid: <>
2020-03-13 15:50:27vstinnerlinkissue35370 messages
2020-03-13 15:50:27vstinnercreate