gh-106168: Update PyList_SET_ITEM() What's New doc (#111618)

This commit is contained in:
Victor Stinner 2023-11-01 21:46:10 +01:00 committed by GitHub
parent 45a36d5f56
commit 821a7ac493
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1040,7 +1040,8 @@ New Features
* If Python is built in :ref:`debug mode <debug-build>` 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