MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / PyList_GetItemRef

Function PyList_GetItemRef

asyncpg/protocol/record/pythoncapi_compat.h:1304–1310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1302// gh-114329 added PyList_GetItemRef() to Python 3.13.0a4
1303#if PY_VERSION_HEX < 0x030D00A4
1304static inline PyObject *
1305PyList_GetItemRef(PyObject *op, Py_ssize_t index)
1306{
1307 PyObject *item = PyList_GetItem(op, index);
1308 Py_XINCREF(item);
1309 return item;
1310}
1311#endif
1312
1313

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected