Add missing error checks for usages of PyIter_Next
#128198
Labels
3.12
bugs and security fixes
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
Not all usages of
PyIter_Next
in the codebase comply with specified behavior:cpython/Objects/abstract.c
Lines 2905 to 2919 in 180d417
One example would be:
cpython/Objects/frameobject.c
Lines 246 to 268 in 180d417
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
PyIter_Next
#128199The text was updated successfully, but these errors were encountered: