File tree 1 file changed +12
-0
lines changed 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -65,17 +65,29 @@ List Objects
65
65
66
66
.. versionadded:: 3.13
67
67
68
+ .. note::
69
+ You can not use this function until all items are set to real objects
70
+ with :c:func:`PyList_SetItem` or :c:func:`PyList_SET_ITEM`.
71
+
68
72
69
73
.. c:function:: PyObject* PyList_GetItem(PyObject *list, Py_ssize_t index)
70
74
71
75
Like :c:func: `PyList_GetItemRef `, but returns a
72
76
:term: `borrowed reference ` instead of a :term: `strong reference `.
73
77
78
+ .. note ::
79
+ You can not use this function until all items are set to real objects
80
+ with :c:func: `PyList_SetItem ` or :c:func: `PyList_SET_ITEM `.
81
+
74
82
75
83
.. c :function :: PyObject* PyList_GET_ITEM (PyObject *list, Py_ssize_t i)
76
84
77
85
Similar to :c:func: `PyList_GetItem `, but without error checking.
78
86
87
+ .. note ::
88
+ You can not use this function until all items are set to real objects
89
+ with :c:func: `PyList_SetItem ` or :c:func: `PyList_SET_ITEM `.
90
+
79
91
80
92
.. c :function :: int PyList_SetItem (PyObject *list, Py_ssize_t index, PyObject *item)
81
93
You can’t perform that action at this time.
0 commit comments