]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-111138: Add PyList_Extend() and PyList_Clear() functions (#111862)
authorVictor Stinner <vstinner@python.org>
Mon, 13 Nov 2023 16:14:56 +0000 (17:14 +0100)
committerGitHub <noreply@github.com>
Mon, 13 Nov 2023 16:14:56 +0000 (16:14 +0000)
commitbabb787047e0f7807c8238d3b1a3128dac30bd5c
tree868cd78ee07ef9c20a5af32db79f979c543b8f0e
parent29af7369dbbbba8cefafb196e977bce8189a527d
gh-111138: Add PyList_Extend() and PyList_Clear() functions (#111862)

* Split list_extend() into two sub-functions: list_extend_fast() and
  list_extend_iter().
* list_inplace_concat() no longer has to call Py_DECREF() on the
  list_extend() result, since list_extend() now returns an int.
Doc/c-api/list.rst
Doc/whatsnew/3.13.rst
Include/cpython/listobject.h
Lib/test/test_capi/test_list.py
Misc/NEWS.d/next/C API/2023-11-08-18-37-19.gh-issue-111138.3Ypq8h.rst [new file with mode: 0644]
Modules/_testcapi/list.c
Objects/clinic/listobject.c.h
Objects/listobject.c