]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117139: Replace _PyList_FromArraySteal with stack ref variant (#122830)
authorSam Gross <colesbury@gmail.com>
Mon, 12 Aug 2024 18:49:49 +0000 (14:49 -0400)
committerGitHub <noreply@github.com>
Mon, 12 Aug 2024 18:49:49 +0000 (14:49 -0400)
commitab094d1b2b348f670743f88e52d1a3f2cab5abd5
tree4b428aee12b8eb286e1405527846c40206adef05
parent736fe4d23e267a70d3b769046f03c1f3bdc0f430
gh-117139: Replace _PyList_FromArraySteal with stack ref variant (#122830)

This replaces `_PyList_FromArraySteal` with `_PyList_FromStackRefSteal`.
It's functionally equivalent, but takes a `_PyStackRef` array instead of
an array of `PyObject` pointers.

Co-authored-by: Ken Jin <kenjin@python.org>
Include/internal/pycore_list.h
Objects/listobject.c
Python/bytecodes.c
Python/executor_cases.c.h
Python/generated_cases.c.h
Tools/cases_generator/analyzer.py