10000 Clarify some details regarding `sys.monitoring` by brettcannon · Pull Request #133981 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Clarify some details regarding sys.monitoring #133981

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jul 3, 2025
Prev Previous commit
Next Next commit
Try clarifying that event activation locally and globally
  • Loading branch information
brettcannon authored Jun 17, 2025
commit 326b31e612abc5baa45880ad56921fc54387e7f2
7 changes: 3 additions & 4 deletions Doc/library/sys.monitoring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,9 @@ in Python (see :ref:`c-api-monitoring`).
Activates all the local events for *code* which are set in *event_set*.
Raises a :exc:`ValueError` if *tool_id* is not in use.

Local events add to global events. In other words, all global events
will trigger for a code object, regardless of the local events. Events
will also only trigger once regardless of whether the same event is
registered both globally and locally for a code object.
Events will only trigger once, regardless of whether the same event is
activated globally as well as locally for a code object. Local activation
also doesn't impact a global registration for the same event and vice-versa.


Disabling events
Expand Down
Loading
0