https://github.com/python/cpython/commit/517b0ee6767cd1156fed2d6615cc41d63afd2fb4
commit: 517b0ee6767cd1156fed2d6615cc41d63afd2fb4
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2026-11-08T20:37:37+01:00
summary:
gh-125174: Remove internal macro _Py_IsImmortalLoose() (#161632)
We don't provide backward compatibility in the internal C API.
files:
M Include/internal/pycore_object.h
diff --git a/Include/internal/pycore_object.h b/Include/internal/pycore_object.h
index a27e13f9c460bfa..30333e14655a60e 100644
--- a/Include/internal/pycore_object.h
+++ b/Include/internal/pycore_object.h
@@ -27,9 +27,6 @@ extern "C" {
// `ob_ref_shared` are used for flags.
#define _Py_REF_DEFERRED (PY_SSIZE_T_MAX / 8)
-/* For backwards compatibility -- Do not use this */
-#define _Py_IsImmortalLoose(op) _Py_IsImmortal
-
/* Check if an object is consistent. For example, ensure that the reference
counter is greater than or equal to 1, and ensure that ob_type is not NULL.
_______________________________________________
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]