]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-108308: Replace _PyDict_GetItemStringWithError() (#108372)
authorVictor Stinner <vstinner@python.org>
Wed, 23 Aug 2023 20:59:00 +0000 (22:59 +0200)
committerGitHub <noreply@github.com>
Wed, 23 Aug 2023 20:59:00 +0000 (22:59 +0200)
commit4dc9f4893084f7c3acf78a0384620cd44f604a0d
treee68ff4cc214daa87aedf3f508ad07c3f0d61ff66
parent1700d34d314f5304a7a75363bda295a8c15c371f
gh-108308: Replace _PyDict_GetItemStringWithError() (#108372)

Replace _PyDict_GetItemStringWithError() calls with
PyDict_GetItemStringRef() which returns a strong reference to the
item.

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Objects/structseq.c
Python/codecs.c
Python/import.c
Python/pylifecycle.c