https://github.com/python/cpython/commit/a45d3fd8bedfeb2af3fa3c068b0a361311a1b74b commit: a45d3fd8bedfeb2af3fa3c068b0a361311a1b74b branch: 3.13 author: Tian Gao <gaogaotiant...@hotmail.com> committer: gaogaotiantian <gaogaotiant...@hotmail.com> date: 2025-07-17T11:43:20-07:00 summary:
[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 <gaogaotiant...@hotmail.com> files: M Doc/library/sys.monitoring.rst diff --git a/Doc/library/sys.monitoring.rst b/Doc/library/sys.monitoring.rst index d43b4742569d71..8fdddbb7bfea81 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 ''''''''''''''''''''''''''' _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: arch...@mail-archive.com