mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-133140: Add PyUnstable_Object_IsUniquelyReferenced
for free-threading (#133144)
This commit is contained in:
parent
0eeaa0ef8b
commit
b275b8f342
8 changed files with 61 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue