Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
May 5, 2025

Conversation

@encukou
Copy link
Member

encukou commented May 5, 2025

+1, from the API surface point of view

Copy link
Contributor

@colesbury colesbury left a comment

Choose a reason for hiding this comment

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

LGTM

@vstinner vstinner merged commit b275b8f into python:main May 5, 2025
46 checks passed
@vstinner
Copy link
Member

vstinner commented May 5, 2025

Merged, thanks.

The Py_REFCNT() documentation might be enhanced to better explain when Py_REFCNT(obj)==1 is acceptable, and the difference between PyUnstable_Object_IsUniquelyReferenced() and PyUnstable_Object_IsUniqueReferencedTemporary(). But that can be done later.

@ZeroIntensity ZeroIntensity deleted the gh-133140-unique-reference branch May 5, 2025 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants