]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-142186: Revert the unintended value change in the `PY_MONITORING_EVENT_*` values...
authorscoder <stefan_ml@behnel.de>
Sat, 25 Apr 2026 07:05:03 +0000 (09:05 +0200)
committerGitHub <noreply@github.com>
Sat, 25 Apr 2026 07:05:03 +0000 (09:05 +0200)
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

index fa6168d95cd21012f6077fc3ed868c125eaf1509..c93271f6ca95f5b58b50d0aefe9993a8471dbbb1 100644 (file)
@@ -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