summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dict_version.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-08-23 15:40:26 (GMT)
committerGitHub <noreply@github.com>2023-08-23 15:40:26 (GMT)
commitf5559f38d9831e7e55a518e516bcd620ec13af14 (patch)
treeb605c775e1bc02b864d17e663400cde01562088d /Lib/test/test_dict_version.py
parent154477be722ae5c4e18d22d0860e284006b09c4f (diff)
downloadcpython-f5559f38d9831e7e55a518e516bcd620ec13af14.zip
cpython-f5559f38d9831e7e55a518e516bcd620ec13af14.tar.gz
cpython-f5559f38d9831e7e55a518e516bcd620ec13af14.tar.bz2
gh-108308: Replace PyDict_GetItem() with PyDict_GetItemRef() (#108309)
Replace PyDict_GetItem() calls with PyDict_GetItemRef() or PyDict_GetItemWithError() to handle errors. * Replace PyLong_AS_LONG() with _PyLong_AsInt() and check for errors. * Check for PyDict_Contains() error. * pycore_init_builtins() checks for _PyType_Lookup() failure.
Diffstat (limited to 'Lib/test/test_dict_version.py')
0 files changed, 0 insertions, 0 deletions