File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -38,9 +38,12 @@ List Objects
38
38
.. note::
39
39
40
40
If *len* is greater than zero, the returned list object's items are
41
- set to ``NULL``. Thus you cannot use abstract API functions such as
42
- :c:func:`PySequence_SetItem` or expose the object to Python code before
43
- setting all items to a real object with :c:func:`PyList_SetItem`.
41
+ set to ``NULL``. Thus you cannot use abstract API functions such as
42
+ :c:func:`PySequence_SetItem` or expose the object to Python code before
43
+ setting all items to a real object with :c:func:`PyList_SetItem` or
44
+ :c:func:`PyList_SET_ITEM()`. The following APIs are safe APIs before
45
+ the list is fully initialized: :c:func:`PyList_SetItem()` and :c:func:`PyList_SET_ITEM()`.
46
+
44
47
45
48
46
49
.. c:function:: Py_ssize_t PyList_Size(PyObject *list)
You can’t perform that action at this time.
0 commit comments