https://github.com/python/cpython/commit/f6f456f95092142c4b6d038b839975bf7db4d1f2 commit: f6f456f95092142c4b6d038b839975bf7db4d1f2 branch: main author: Uwe L. Korn <[email protected]> committer: vstinner <[email protected]> date: 2025-12-03T15:24:17+01:00 summary:
gh-142038: Expand guard for types_world_is_stopped() to fix debug builds without assertions (#142039) files: M Objects/typeobject.c diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 4c6ff51493f799..cbe0215359e29d 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -81,7 +81,7 @@ class object "PyObject *" "&PyBaseObject_Type" #define END_TYPE_DICT_LOCK() Py_END_CRITICAL_SECTION2() -#ifndef NDEBUG +#if !defined(NDEBUG) || defined(Py_DEBUG) // Return true if the world is currently stopped. static bool types_world_is_stopped(void) _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
