summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/list.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/c-api/list.rst')
-rw-r--r--Doc/c-api/list.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/c-api/list.rst b/Doc/c-api/list.rst
index dbf3561..c15cecd 100644
--- a/Doc/c-api/list.rst
+++ b/Doc/c-api/list.rst
@@ -86,6 +86,10 @@ List Objects
Macro form of :c:func:`PyList_SetItem` without error checking. This is
normally only used to fill in new lists where there is no previous content.
+ Bounds checking is performed as an assertion if Python is built in
+ :ref:`debug mode <debug-build>` or :option:`with assertions
+ <--with-assertions>`.
+
.. note::
This macro "steals" a reference to *item*, and, unlike