From f98e3a9092507fe67164216ea95738fd942487ff Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 1 Nov 2023 21:29:57 +0100 Subject: [PATCH] gh-106168: Update PyList_SET_ITEM() What's New doc --- Doc/whatsnew/3.13.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index 9181685736575dc..50b920671e524c4 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -1035,7 +1035,8 @@ New Features * If Python is built in :ref:`debug mode ` or :option:`with assertions <--with-assertions>`, :c:func:`PyTuple_SET_ITEM` and :c:func:`PyList_SET_ITEM` now check the index argument with an assertion. - If the assertion fails, make sure that the size is set before. + If the assertion fails in :c:func:`PyTuple_SET_ITEM`, make sure that the size + is set before. (Contributed by Victor Stinner in :gh:`106168`.) * Add :c:func:`PyModule_Add` function: similar to