Skip to content

Commit f9d7145

Browse files
committed
Clarify PyListWriter_ExtendArray() doc
1 parent b0edd12 commit f9d7145

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Doc/c-api/list.rst‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,8 @@ On Free Threading, it's more efficient than the ``PyList`` C API to create a
305305
306306
.. c:function:: int PyListWriter_ExtendArray(PyListWriter *writer, PyObject *const *items, Py_ssize_t nitem)
307307
308-
Extend the list writer with the contents of *items*.
308+
Extend the list writer with the contents of *items*: copy references from
309+
*items* to the list writer.
309310
310311
On success, return ``0``.
311312
On error, set an exception and return ``-1``.

0 commit comments

Comments
 (0)