summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-03-13 15:39:12 (GMT)
committerGitHub <noreply@github.com>2020-03-13 15:39:12 (GMT)
commit309d7cc5df4e2bf3086c49eb2b1b56b929554500 (patch)
tree18fefb154766c2c568ae128f42b115090f7d05eb /Misc
parent9ee88cde1abf7f274cc55a0571b1c2cdb1263743 (diff)
downloadcpython-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 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2020-03-13-14-41-28.bpo-35370.df50Q7.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-03-13-14-41-28.bpo-35370.df50Q7.rst b/Misc/NEWS.d/next/Library/2020-03-13-14-41-28.bpo-35370.df50Q7.rst
new file mode 100644
index 0000000..a65fe63
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2020-03-13-14-41-28.bpo-35370.df50Q7.rst
@@ -0,0 +1,3 @@
+sys.settrace(), sys.setprofile() and _lsprof.Profiler.enable() now properly
+report :c:func:`PySys_Audit` error if "sys.setprofile" or "sys.settrace"
+audit event is denied.