diff options
author | Mark Shannon <mark@hotpy.org> | 2023-07-27 12:32:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-27 12:32:30 (GMT) |
commit | 766d2518ae8384c6bd7f82727defeb86847ccf64 (patch) | |
tree | 1831ee92ae897c8236517ede9e860ab26656df3f /Python/instrumentation.c | |
parent | f84d77b4e07aeb6241c1ff9932627d3ba059efa8 (diff) | |
download | cpython-766d2518ae8384c6bd7f82727defeb86847ccf64.zip cpython-766d2518ae8384c6bd7f82727defeb86847ccf64.tar.gz cpython-766d2518ae8384c6bd7f82727defeb86847ccf64.tar.bz2 |
GH-106897: Add `RERAISE` event to `sys.monitoring`. (GH-107291)
* Ensures that exception handling events are balanced. Each [re]raise event has a matching unwind/handled event.
Diffstat (limited to 'Python/instrumentation.c')
-rw-r--r-- | Python/instrumentation.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/instrumentation.c b/Python/instrumentation.c index c3515d2..280e13d 100644 --- a/Python/instrumentation.c +++ b/Python/instrumentation.c @@ -2030,6 +2030,7 @@ static const char *const event_names [] = { [PY_MONITORING_EVENT_C_RETURN] = "C_RETURN", [PY_MONITORING_EVENT_PY_THROW] = "PY_THROW", [PY_MONITORING_EVENT_RAISE] = "RAISE", + [PY_MONITORING_EVENT_RERAISE] = "RERAISE", [PY_MONITORING_EVENT_EXCEPTION_HANDLED] = "EXCEPTION_HANDLED", [PY_MONITORING_EVENT_C_RAISE] = "C_RAISE", [PY_MONITORING_EVENT_PY_UNWIND] = "PY_UNWIND", |