Skip to content

Commit 326b31e

Browse files
authored
Try clarifying that event activation locally and globally
1 parent 0d53375 commit 326b31e

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Doc/library/sys.monitoring.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,9 @@ in Python (see :ref:`c-api-monitoring`).
292292
Activates all the local events for *code* which are set in *event_set*.
293293
Raises a :exc:`ValueError` if *tool_id* is not in use.
294294

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

300299

301300
Disabling events

0 commit comments

Comments
 (0)