gh-114329: Add `PyList_GetItemRef` function by colesbury · Pull Request #114504 · python/cpython
The new `PyList_GetItemRef` is similar to `PyList_GetItem`, but returns a strong reference instead of a borrowed reference. Additionally, if the passed "list" object is not a list, the function sets a `TypeError` instead of calling `PyErr_BadInternalCall()`.
Bot
mentioned this pull request
aisk pushed a commit to aisk/cpython that referenced this pull request
fsc-eriker pushed a commit to fsc-eriker/cpython that referenced this pull request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters