mirror of
https://github.com/python/cpython.git
synced 2026-07-26 03:43:11 -04:00
d0f1307580
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()`.