# Feature or enhancement ### Proposal: There are a lot of places where `Py_REFCNT(..)==1` used. IIUC it is not correct for `no-gil` version. ### Has this already been discussed elsewhere? This is a minor feature, which does not need previous discussion elsewhere ### Links to previous discussion of this feature: _No response_ <!-- gh-linked-prs --> ### Linked PRs * gh-140062 * gh-140157 <!-- /gh-linked-prs -->
Feature or enhancement
Proposal:
There are a lot of places where
Py_REFCNT(..)==1used. IIUC it is not correct forno-gilversion.Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
_PyObject_IsUniquelyReferenced()to check if objects are uniquely referenced (gh-140062) #140157