PEP 669: Clarify section on DISABLE. (#2759)
Clarify section on DISABLE.
This commit is contained in:
parent
738a01cb30
commit
9819ca468e
|
@ -217,10 +217,11 @@ recieve any more events for that ``(code, instruction_offset)``.
|
||||||
This feature is provided for coverage and other tools that are only interested
|
This feature is provided for coverage and other tools that are only interested
|
||||||
seeing an event once.
|
seeing an event once.
|
||||||
|
|
||||||
Tools may see events after returning ``DISABLE``, in which case, they will not see
|
If a callback function returns ``DISABLE``, then that function will no longer
|
||||||
those events until ``sys.monitoring.restart_events()`` is called.
|
be called for that event and location until
|
||||||
|
``sys.monitoring.restart_events()`` is called.
|
||||||
Note that ``sys.monitoring.restart_events()`` is not specific to one tool,
|
Note that ``sys.monitoring.restart_events()`` is not specific to one tool,
|
||||||
so tools must be prepared to recieve events that they have chosen to DISABLE.
|
so tools must be prepared to receive events that they have chosen to DISABLE.
|
||||||
|
|
||||||
Events in callback functions
|
Events in callback functions
|
||||||
----------------------------
|
----------------------------
|
||||||
|
|
Loading…
Reference in New Issue