From db0ee44b93f766bcd7dcaba24924efc3a065f2d2 Mon Sep 17 00:00:00 2001 From: scoder Date: Sat, 25 Apr 2026 09:05:03 +0200 Subject: [PATCH] gh-142186: Revert the unintended value change in the `PY_MONITORING_EVENT_*` values from gh-146182 (gh-148955) https://github.com/python/cpython/pull/146182 left an unintended change in the `PY_MONITORING_*` macro values. This change reverts that part to avoid a user visible impact. --- Include/cpython/monitoring.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Include/cpython/monitoring.h b/Include/cpython/monitoring.h index fa6168d95cd..c93271f6ca9 100644 --- a/Include/cpython/monitoring.h +++ b/Include/cpython/monitoring.h @@ -29,9 +29,9 @@ extern "C" { /* Other events, mainly exceptions. * These can now be turned on and disabled on a per code object basis. */ -#define PY_MONITORING_EVENT_PY_UNWIND 11 +#define PY_MONITORING_EVENT_RAISE 11 #define PY_MONITORING_EVENT_EXCEPTION_HANDLED 12 -#define PY_MONITORING_EVENT_RAISE 13 +#define PY_MONITORING_EVENT_PY_UNWIND 13 #define PY_MONITORING_EVENT_PY_THROW 14 #define PY_MONITORING_EVENT_RERAISE 15