]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35370: Add _PyEval_SetTrace() function (GH-18975)
authorVictor Stinner <vstinner@python.org>
Fri, 13 Mar 2020 15:39:12 +0000 (16:39 +0100)
committerGitHub <noreply@github.com>
Fri, 13 Mar 2020 15:39:12 +0000 (16:39 +0100)
commit309d7cc5df4e2bf3086c49eb2b1b56b929554500
tree18fefb154766c2c568ae128f42b115090f7d05eb
parent9ee88cde1abf7f274cc55a0571b1c2cdb1263743
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.
Doc/c-api/init.rst
Include/cpython/abstract.h
Include/cpython/ceval.h
Misc/NEWS.d/next/Library/2020-03-13-14-41-28.bpo-35370.df50Q7.rst [new file with mode: 0644]
Modules/_lsprof.c
Python/ceval.c
Python/sysmodule.c