Skip to content

gh-105927: Remove _PyWeakref_GetWeakrefCount() #106007

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 1 commit into from
Jun 23, 2023

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jun 23, 2023

Remove _PyWeakref_GetWeakrefCount() and _PyWeakref_ClearRef() from the public C API: move them to the internal C API.

Refactor also _weakref_getweakrefs() code to make it more readable.

Remove _PyWeakref_GetWeakrefCount() and _PyWeakref_ClearRef() from
the public C API: move them to the internal C API.

Refactor also _weakref_getweakrefs() code to make it more readable.
@vstinner vstinner requested a review from pablogsal as a code owner June 23, 2023 02:30
@vstinner vstinner enabled auto-merge (squash) June 23, 2023 02:58
@vstinner vstinner merged commit 6a80664 into python:main Jun 23, 2023
@vstinner vstinner deleted the weakref_internal_api branch June 27, 2023 23:17
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.

2 participants