]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-123091: Use more _Py_IsImmortalLoose() (GH-123602) (GH-123622)
authorPetr Viktorin <encukou@gmail.com>
Tue, 3 Sep 2024 10:36:42 +0000 (12:36 +0200)
committerGitHub <noreply@github.com>
Tue, 3 Sep 2024 10:36:42 +0000 (12:36 +0200)
commitd655c655619d8a6b7eec908a7b7c770d5f2ac0f8
treef9b9f92e90fb19c164a45b7249dbc969eb2b39b9
parent7761ddcfed82b89c4a9d5610bf1821912e0e90d1
[3.13] gh-123091: Use more _Py_IsImmortalLoose() (GH-123602) (GH-123622)

Switch more _Py_IsImmortal(...) assertions to _Py_IsImmortalLoose(...)

The remaining calls to _Py_IsImmortal are in free-threaded-only code,
initialization of core objects, tests, and guards that fall back to
code that works with mortal objects.

(cherry picked from commit 57c471a6880956338549380fc5fb35c986937901)
Modules/_asynciomodule.c
Objects/structseq.c
Python/import.c