diff options
author | Victor Stinner <vstinner@python.org> | 2023-11-13 16:14:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 16:14:56 (GMT) |
commit | babb787047e0f7807c8238d3b1a3128dac30bd5c (patch) | |
tree | 868cd78ee07ef9c20a5af32db79f979c543b8f0e /Misc | |
parent | 29af7369dbbbba8cefafb196e977bce8189a527d (diff) | |
download | cpython-babb787047e0f7807c8238d3b1a3128dac30bd5c.zip cpython-babb787047e0f7807c8238d3b1a3128dac30bd5c.tar.gz cpython-babb787047e0f7807c8238d3b1a3128dac30bd5c.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/C API/2023-11-08-18-37-19.gh-issue-111138.3Ypq8h.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2023-11-08-18-37-19.gh-issue-111138.3Ypq8h.rst b/Misc/NEWS.d/next/C API/2023-11-08-18-37-19.gh-issue-111138.3Ypq8h.rst new file mode 100644 index 0000000..15c3b9b --- /dev/null +++ b/Misc/NEWS.d/next/C API/2023-11-08-18-37-19.gh-issue-111138.3Ypq8h.rst @@ -0,0 +1,2 @@ +Add :c:func:`PyList_Extend` and :c:func:`PyList_Clear` functions: similar to +Python ``list.extend()`` and ``list.clear()`` methods. Patch by Victor Stinner. |