diff options
author | Victor Stinner <vstinner@python.org> | 2020-03-13 15:39:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-13 15:39:12 (GMT) |
commit | 309d7cc5df4e2bf3086c49eb2b1b56b929554500 (patch) | |
tree | 18fefb154766c2c568ae128f42b115090f7d05eb /Doc | |
parent | 9ee88cde1abf7f274cc55a0571b1c2cdb1263743 (diff) | |
download | cpython-309d7cc5df4e2bf3086c49eb2b1b56b929554500.zip cpython-309d7cc5df4e2bf3086c49eb2b1b56b929554500.tar.gz cpython-309d7cc5df4e2bf3086c49eb2b1b56b929554500.tar.bz2 |
bpo-35370: Add _PyEval_SetTrace() function (GH-18975)
* sys.settrace(), sys.setprofile() and _lsprof.Profiler.enable() now
properly report PySys_Audit() error if "sys.setprofile" or
"sys.settrace" audit event is denied.
* Add _PyEval_SetProfile() and _PyEval_SetTrace() function: similar
to PyEval_SetProfile() and PyEval_SetTrace() but take a tstate
parameter and return -1 on error.
* Add _PyObject_FastCallTstate() function.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/c-api/init.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst index badea5a..747278c 100644 --- a/Doc/c-api/init.rst +++ b/Doc/c-api/init.rst @@ -1498,6 +1498,8 @@ Python-level trace functions in previous versions. profile function is called for all monitored events except :const:`PyTrace_LINE` :const:`PyTrace_OPCODE` and :const:`PyTrace_EXCEPTION`. + The caller must hold the :term:`GIL`. + .. c:function:: void PyEval_SetTrace(Py_tracefunc func, PyObject *obj) @@ -1508,6 +1510,9 @@ Python-level trace functions in previous versions. will not receive :const:`PyTrace_C_CALL`, :const:`PyTrace_C_EXCEPTION` or :const:`PyTrace_C_RETURN` as a value for the *what* parameter. + The caller must hold the :term:`GIL`. + + .. _advanced-debugging: Advanced Debugger Support |