From: Uwe L. Korn Date: Wed, 3 Dec 2025 14:24:17 +0000 (+0100) Subject: gh-142038: Expand guard for types_world_is_stopped() to fix debug builds without... X-Git-Tag: v3.15.0a3~216 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6f456f95092142c4b6d038b839975bf7db4d1f2;p=thirdparty%2FPython%2Fcpython.git gh-142038: Expand guard for types_world_is_stopped() to fix debug builds without assertions (#142039) --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 4c6ff51493f7..cbe0215359e2 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)