summaryrefslogtreecommitdiffstats
path: root/Doc/library/audit_events.rst
diff options
context:
space:
mode:
authorRyan Hileman <lunixbochs@gmail.com>2021-04-29 23:15:55 (GMT)
committerGitHub <noreply@github.com>2021-04-29 23:15:55 (GMT)
commit9a2c2a9ec3140b6c54c9ef9d994311f114128ee3 (patch)
treefbc87fa594de1ab3f8151dc74786add7eac3e1b3 /Doc/library/audit_events.rst
parent088a15c49d99ecb4c3bef93f8f40dd513c6cae3b (diff)
downloadcpython-9a2c2a9ec3140b6c54c9ef9d994311f114128ee3.zip
cpython-9a2c2a9ec3140b6c54c9ef9d994311f114128ee3.tar.gz
cpython-9a2c2a9ec3140b6c54c9ef9d994311f114128ee3.tar.bz2
bpo-42800: add audit hooks for f_code and tb_frame (GH-24182)
Accessing the following attributes will now fire PEP 578 style audit hooks as ("object.__getattr__", obj, name): * PyTracebackObject: tb_frame * PyFrameObject: f_code * PyGenObject: gi_code, gi_frame * PyCoroObject: cr_code, cr_frame * PyAsyncGenObject: ag_code, ag_frame Add an AUDIT_READ attribute flag aliased to READ_RESTRICTED. Update obsolete flag documentation.
Diffstat (limited to 'Doc/library/audit_events.rst')
-rw-r--r--Doc/library/audit_events.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/audit_events.rst b/Doc/library/audit_events.rst
index 367d56e..8227a79 100644
--- a/Doc/library/audit_events.rst
+++ b/Doc/library/audit_events.rst
@@ -7,7 +7,7 @@ Audit events table
This table contains all events raised by :func:`sys.audit` or
:c:func:`PySys_Audit` calls throughout the CPython runtime and the
-standard library. These calls were added in 3.8.0 or later.
+standard library. These calls were added in 3.8.0 or later (see :pep:`578`).
See :func:`sys.addaudithook` and :c:func:`PySys_AddAuditHook` for
information on handling these events.