I'd like to add a new C API to allow extensions to mark objects as immortal. See https://discuss.python.org/t/add-an-unstable-c-api-for-immortalizing-objects/105461 for discussion. I'm opening this issue to link a future PR and for visibility for people who don't look at discourse regularly. <!-- gh-linked-prs --> ### Linked PRs * gh-144543 <!-- /gh-linked-prs -->