]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-127058: Make `PySequence_Tuple` safer and probably faster. (#127758)
authorMark Shannon <mark@hotpy.org>
Wed, 11 Dec 2024 14:02:59 +0000 (14:02 +0000)
committerGitHub <noreply@github.com>
Wed, 11 Dec 2024 14:02:59 +0000 (14:02 +0000)
commit5a23994a3dbee43a0b08f5920032f60f38b63071
treee2fad9c3a8a3204f2e155d3fff61d733231c4003
parent359389ed51aecc107681e600b71852c0a97304e1
GH-127058: Make `PySequence_Tuple` safer and probably faster. (#127758)

* Use a small buffer, then list when constructing a tuple from an arbitrary sequence.
Include/internal/pycore_list.h
Lib/test/test_capi/test_tuple.py
Misc/NEWS.d/next/Core_and_Builtins/2024-12-09-11-29-10.gh-issue-127058.pqtBcZ.rst [new file with mode: 0644]
Objects/abstract.c
Objects/listobject.c