We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0b8a8f commit 7f69f2dCopy full SHA for 7f69f2d
Include/internal/pycore_list.h
@@ -10,7 +10,8 @@ extern "C" {
10
11
PyAPI_FUNC(PyObject*) _PyList_Extend(PyListObject *, PyObject *);
12
extern void _PyList_DebugMallocStats(FILE *out);
13
-// _PyList_GetItemRef should be used only when the object is known to be a list.
+// _PyList_GetItemRef should be used only when the object is known as a list
14
+// because it doesn't raise TypeError when the object is not a list, whereas PyList_GetItemRef does.
15
extern PyObject* _PyList_GetItemRef(PyListObject *, Py_ssize_t i);
16
17
#define _PyList_ITEMS(op) _Py_RVALUE(_PyList_CAST(op)->ob_item)
0 commit comments