diff options
author | Victor Stinner <vstinner@python.org> | 2023-08-23 15:40:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-23 15:40:26 (GMT) |
commit | f5559f38d9831e7e55a518e516bcd620ec13af14 (patch) | |
tree | b605c775e1bc02b864d17e663400cde01562088d /Lib/test/test_pkg.py | |
parent | 154477be722ae5c4e18d22d0860e284006b09c4f (diff) | |
download | cpython-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_pkg.py')
0 files changed, 0 insertions, 0 deletions