mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
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()`.
3 lines
158 B
ReStructuredText
3 lines
158 B
ReStructuredText
Add :c:func:`PyList_GetItemRef`, which is similar to
|
|
:c:func:`PyList_GetItem` but returns a :term:`strong reference` instead of a
|
|
:term:`borrowed reference`.
|