File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -314,13 +314,17 @@ To register a callable for events call
314314 it is unregistered and returned.
315315 Otherwise :func: `register_callback ` returns ``None ``.
316316
317+ .. audit-event :: sys.monitoring.register_callback func sys.monitoring.register_callback
317318
318319Functions can be unregistered by calling
319320``sys.monitoring.register_callback(tool_id, event, None) ``.
320321
321322Callback functions can be registered and unregistered at any time.
322323
323- Registering or unregistering a callback function will generate a :func: `sys.audit ` event.
324+ Callbacks are called only once regardless if the event is turned on both
325+ globally and locally. As such, if an event could be turned on for both global
326+ and local events by your code then the callback needs to be written to handle
327+ either trigger.
324328
325329
326330Callback function arguments
You can’t perform that action at this time.
0 commit comments