mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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.
This commit is contained in:
parent
f84d77b4e0
commit
766d2518ae
8 changed files with 231 additions and 44 deletions
|
@ -36,12 +36,13 @@ extern "C" {
|
|||
#define PY_MONITORING_EVENT_EXCEPTION_HANDLED 11
|
||||
#define PY_MONITORING_EVENT_PY_UNWIND 12
|
||||
#define PY_MONITORING_EVENT_PY_THROW 13
|
||||
#define PY_MONITORING_EVENT_RERAISE 14
|
||||
|
||||
|
||||
/* Ancilliary events */
|
||||
|
||||
#define PY_MONITORING_EVENT_C_RETURN 14
|
||||
#define PY_MONITORING_EVENT_C_RAISE 15
|
||||
#define PY_MONITORING_EVENT_C_RETURN 15
|
||||
#define PY_MONITORING_EVENT_C_RAISE 16
|
||||
|
||||
|
||||
typedef uint32_t _PyMonitoringEventSet;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue