diff options
author | Victor Stinner <vstinner@python.org> | 2024-09-02 13:23:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-02 13:23:29 (GMT) |
commit | 10735bff9e097626ea319ac19aab0e16a57729e1 (patch) | |
tree | 6d3877c4c1cfdae35d6a69d13eea1867be2af3fd /Python/bytecodes.c | |
parent | b76a4a5db7b4f97942b2cd7027f5a59ce7cbb523 (diff) | |
download | cpython-10735bff9e097626ea319ac19aab0e16a57729e1.zip cpython-10735bff9e097626ea319ac19aab0e16a57729e1.tar.gz cpython-10735bff9e097626ea319ac19aab0e16a57729e1.tar.bz2 |
[3.13] gh-123091: Use _Py_IsImmortalLoose() (#123511) (#123600)
gh-123091: Use _Py_IsImmortalLoose() (#123511)
Use _Py_IsImmortalLoose() in bytesobject.c, typeobject.c
and ceval.c.
(cherry picked from commit f1a0d96f41db9dfa5d7f0b32e72f6f7301a86f91)
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r-- | Python/bytecodes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c index c222fcd..d953311 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -362,7 +362,7 @@ dummy_func( EXIT_IF(!PyLong_CheckExact(value)); STAT_INC(TO_BOOL, hit); if (_PyLong_IsZero((PyLongObject *)value)) { - assert(_Py_IsImmortal(value)); + assert(_Py_IsImmortalLoose(value)); res = Py_False; } else { @@ -389,7 +389,7 @@ dummy_func( EXIT_IF(!PyUnicode_CheckExact(value)); STAT_INC(TO_BOOL, hit); if (value == &_Py_STR(empty)) { - assert(_Py_IsImmortal(value)); + assert(_Py_IsImmortalLoose(value)); res = Py_False; } else { |