mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[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 28937d3a21)
Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
This commit is contained in:
parent
46fe8e38c4
commit
a45d3fd8be
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
'''''''''''''''''''''''''''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue