mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
GH-106895: Raise a ValueError
when attempting to disable events that cannot be disabled. (GH-107337)
This commit is contained in:
parent
d77d973335
commit
c6539b36c1
9 changed files with 120 additions and 52 deletions
|
@ -28,7 +28,8 @@ extern "C" {
|
|||
#define PY_MONITORING_EVENT_BRANCH 8
|
||||
#define PY_MONITORING_EVENT_STOP_ITERATION 9
|
||||
|
||||
#define PY_MONITORING_INSTRUMENTED_EVENTS 10
|
||||
#define PY_MONITORING_IS_INSTRUMENTED_EVENT(ev) \
|
||||
((ev) <= PY_MONITORING_EVENT_STOP_ITERATION)
|
||||
|
||||
/* Other events, mainly exceptions */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue