SIGN IN SIGN UP

gh-114329: Add `PyList_GetItemRef` function (GH-114504)

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()`.
S
Sam Gross committed
d0f1307580a69372611d27b04bbf2551dc85a1ef
Parent: 0e71a29
Committed by GitHub <noreply@github.com> on 2/2/2024, 1:03:15 PM