From: Victor Stinner Date: Wed, 1 Nov 2023 20:46:10 +0000 (+0100) Subject: gh-106168: Update PyList_SET_ITEM() What's New doc (#111618) X-Git-Tag: v3.13.0a2~235 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=821a7ac493120b6d5065598cfa835ab3f25965cb;p=thirdparty%2FPython%2Fcpython.git gh-106168: Update PyList_SET_ITEM() What's New doc (#111618) --- diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index b3fa06fc0d23..e5f39c58490b 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -1040,7 +1040,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 + tuple size is set before. (Contributed by Victor Stinner in :gh:`106168`.) * Add :c:func:`PyModule_Add` function: similar to