gh-133140: Add PyUnstable_Object_IsUniquelyReferenced for free-threading (#133144)

This commit is contained in:
Peter Bierma 2025-05-05 15:01:20 -04:00 committed by GitHub
parent 0eeaa0ef8b
commit b275b8f342
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 61 additions and 1 deletions

View file

@ -3275,3 +3275,11 @@ PyUnstable_IsImmortal(PyObject *op)
assert(op != NULL);
return _Py_IsImmortal(op);
}
int
PyUnstable_Object_IsUniquelyReferenced(PyObject *op)
{
_Py_AssertHoldsTstate();
assert(op != NULL);
return _PyObject_IsUniquelyReferenced(op);
}