https://github.com/python/cpython/commit/1e1f43519605b7c54a96aa44d0feed09d2bb1a67 commit: 1e1f43519605b7c54a96aa44d0feed09d2bb1a67 branch: main author: Neil Schemenauer <[email protected]> committer: vstinner <[email protected]> date: 2025-10-14T23:34:30Z summary:
gh-140126: Fix compile error if --with-assertions is enabled (#140133) The `types_world_is_stopped()` function needs to be defined if NDEBUG is not defined. files: M Objects/typeobject.c diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 9398bcb29c83e4..29233c1959c4d0 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() -#ifdef Py_DEBUG +#ifndef NDEBUG // 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]
