You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 3.10 and earlier, accessing the attributes via Python these functions would return a strong reference that was shared, not a brand new reference. So we should relax the terminology and just say strong reference in the docs (to also allow further optimisations in the future).
Isn't "New Reference" used throughout the documentation for functions returning a PyObject* that the caller should DECREF? For example see the documentation for PyObject_GetAttr.
These new functions were added in 3.11.
In 3.10 and earlier, accessing the attributes via Python these functions would return a strong reference that was shared, not a brand new reference. So we should relax the terminology and just say strong reference in the docs (to also allow further optimisations in the future).
Continuing from #94936.
The text was updated successfully, but these errors were encountered: