Skip to content

Commit 269832a

Browse files
committed
Doc that the value cannot be NULL.
1 parent 4d0ad9e commit 269832a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/c-api/tuple.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Tuple Objects
8787
.. c:function:: void PyTuple_SET_ITEM(PyObject *p, Py_ssize_t pos, PyObject *o)
8888
8989
Like :c:func:`PyTuple_SetItem`, but does no error checking, and should *only* be
90-
used to fill in brand new tuples.
90+
used to fill in brand new tuples. Both ``p`` and ``o`` must be non-``NULL``.
9191
9292
Bounds checking is performed as an assertion if Python is built in
9393
:ref:`debug mode <debug-build>` or :option:`with assertions <--with-assertions>`.

0 commit comments

Comments
 (0)