KEMBAR78
gh-105927: type_from_ref() uses _PyWeakref_GET_REF() by vstinner · Pull Request #105963 · python/cpython · GitHub
Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Jun 21, 2023

type_from_ref() now returns a strong reference to the type, instead of a borrowed reference: replace PyWeakref_GET_OBJECT() with _PyWeakref_GET_REF().

vstinner added 2 commits June 21, 2023 15:47
type_from_ref() now returns a strong reference to the type, instead
of a borrowed reference: replace PyWeakref_GET_OBJECT() with
_PyWeakref_GET_REF().
@vstinner vstinner merged commit fc32522 into python:main Jun 21, 2023
@vstinner vstinner deleted the getref_type branch June 21, 2023 14:36
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