summaryrefslogtreecommitdiffstats
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-06-21 13:44:25 (GMT)
committerGitHub <noreply@github.com>2023-06-21 13:44:25 (GMT)
commitfb1e691e4bc7757c11bf9e51dda675f15537db8c (patch)
tree6bc8c40a35e6ccbc6c0f97f628a771b8df73f97a /Python/Python-ast.c
parenteaa670228066220f08c8d73f80365c50058d40b8 (diff)
downloadcpython-fb1e691e4bc7757c11bf9e51dda675f15537db8c.zip
cpython-fb1e691e4bc7757c11bf9e51dda675f15537db8c.tar.gz
cpython-fb1e691e4bc7757c11bf9e51dda675f15537db8c.tar.bz2
gh-105927: _abc and _thread use PyWeakref_GetRef() (#105961)
Hold a strong reference on the object, rather than using a borrowed reference: replace PyWeakref_GET_OBJECT() with PyWeakref_GetRef() and _PyWeakref_GET_REF(). Remove assert(PyWeakref_CheckRef(localweakref)) since it's already tested by _PyWeakref_GET_REF().
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions