]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-105927: PyWeakref_GetRef() returns 1 on success (#106561)
authorVictor Stinner <vstinner@python.org>
Sun, 9 Jul 2023 15:50:26 +0000 (17:50 +0200)
committerGitHub <noreply@github.com>
Sun, 9 Jul 2023 15:50:26 +0000 (15:50 +0000)
commitee46cb6aa959d891b0a480fea29f1eb991e0fad8
tree01f90018669fcdeaf3dc568621a655cf8cc10078
parent1e12c8cfa373e57aaec65a574e5e4932bbbc0d4f
gh-105927: PyWeakref_GetRef() returns 1 on success (#106561)

PyWeakref_GetRef() now returns 1 on success, and return 0 if the
reference is dead.

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Doc/c-api/weakref.rst
Modules/_testcapimodule.c
Objects/weakrefobject.c