diff options
author | Steve Dower <steve.dower@python.org> | 2021-04-21 22:34:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-21 22:34:29 (GMT) |
commit | 7b86e47617d81a4b14d929743425f448971e8c86 (patch) | |
tree | a180082c4bf68c4170caea801b3e0568135ffe29 /Doc/library | |
parent | 139c232f3851b393798d0ea4e65f1298bfbcd9cf (diff) | |
download | cpython-7b86e47617d81a4b14d929743425f448971e8c86.zip cpython-7b86e47617d81a4b14d929743425f448971e8c86.tar.gz cpython-7b86e47617d81a4b14d929743425f448971e8c86.tar.bz2 |
bpo-43472: Ensure PyInterpreterState_New audit events are raised when called through _xxsubinterpreters module (GH-25506)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/sys.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 721edd1..e431d1b 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -26,12 +26,12 @@ always available. .. function:: addaudithook(hook) Append the callable *hook* to the list of active auditing hooks for the - current interpreter. + current (sub)interpreter. When an auditing event is raised through the :func:`sys.audit` function, each hook will be called in the order it was added with the event name and the tuple of arguments. Native hooks added by :c:func:`PySys_AddAuditHook` are - called first, followed by hooks added in the current interpreter. Hooks + called first, followed by hooks added in the current (sub)interpreter. Hooks can then log the event, raise an exception to abort the operation, or terminate the process entirely. |