Skip to content

gh-143300: implement PyUnstable_SetImmortal#144543

Draft
kumaraditya303 wants to merge 3 commits intopython:mainfrom
kumaraditya303:immortal
Draft

gh-143300: implement PyUnstable_SetImmortal#144543
kumaraditya303 wants to merge 3 commits intopython:mainfrom
kumaraditya303:immortal

Conversation

@kumaraditya303
Copy link
Contributor

@kumaraditya303 kumaraditya303 commented Feb 6, 2026


int
PyUnstable_SetImmortal(PyObject *op)
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should there maybe be a call to IsUniquelyReferenced as a sanity check? It won't be foolproof for objects that are transiently shared. However, if the argument isn't uniquely referenced then that's definitely incorrect use of this function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants