]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-136697: Use the standard audit event format for sys.monitoring docs (#136747)
authorTian Gao <gaogaotiantian@hotmail.com>
Thu, 17 Jul 2025 18:10:10 +0000 (11:10 -0700)
committerGitHub <noreply@github.com>
Thu, 17 Jul 2025 18:10:10 +0000 (11:10 -0700)
Doc/library/sys.monitoring.rst

index f62a4011e4144ba1971d0608a82d450b51ebade6..0f986aa580b3c94117eef13ee27930db84db3c0c 100644 (file)
@@ -333,6 +333,8 @@ Registering callback functions
    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)``.
 
@@ -343,8 +345,6 @@ globally and locally. As such, if an event could be turned on for both global
 and local events by your code then the callback needs to be written to handle
 either trigger.
 
-Registering or unregistering a callback function will generate a :func:`sys.audit` event.
-
 
 Callback function arguments
 '''''''''''''''''''''''''''