From: Tian Gao Date: Thu, 17 Jul 2025 18:43:20 +0000 (-0700) Subject: [3.13] gh-136697: Use the standard audit event format for sys.monitor… (#136750) X-Git-Tag: v3.13.6~73 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a45d3fd8bedfeb2af3fa3c068b0a361311a1b74b;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-136697: Use the standard audit event format for sys.monitor… (#136750) * [3.13] gh-136697: Use the standard audit event format for sys.monitoring docs (GH-136747) (cherry picked from commit 28937d3a21cf8168c853ae43374a8287c21f71c9) Co-authored-by: Tian Gao --- diff --git a/Doc/library/sys.monitoring.rst b/Doc/library/sys.monitoring.rst index d43b4742569d..8fdddbb7bfea 100644 --- a/Doc/library/sys.monitoring.rst +++ b/Doc/library/sys.monitoring.rst @@ -314,14 +314,13 @@ To register a callable for events call it is unregistered and returned. Otherwise :func:`register_callback` returns ``None``. + .. audit-event:: sys.monitoring.register_callback func sys.monitoring.register_callback Functions can be unregistered by calling ``sys.monitoring.register_callback(tool_id, event, None)``. Callback functions can be registered and unregistered at any time. -Registering or unregistering a callback function will generate a :func:`sys.audit` event. - Callback function arguments '''''''''''''''''''''''''''