]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-128682: Change a couple of functions to only steal references on success. (GH...
authorMark Shannon <mark@hotpy.org>
Wed, 22 Jan 2025 10:51:37 +0000 (10:51 +0000)
committerGitHub <noreply@github.com>
Wed, 22 Jan 2025 10:51:37 +0000 (10:51 +0000)
commit470a0a68ebbbb4254f1a3e8e22cce0c3a0827055
tree27f602ce33d9c7701db07ad64fb0342c8f49a65a
parenta65f802692bd04e1ad18e467d4ccb033b049c2a7
GH-128682: Change a couple of functions to only steal references on success. (GH-129132)

Change PyTuple_FromStackRefSteal and PyList_FromStackRefSteal to only steal on success to avoid escaping
Include/internal/pycore_list.h
Include/internal/pycore_opcode_metadata.h
Include/internal/pycore_tuple.h
Include/internal/pycore_uop_metadata.h
Objects/listobject.c
Objects/tupleobject.c
Python/bytecodes.c
Python/ceval.c
Python/executor_cases.c.h
Python/generated_cases.c.h
Tools/cases_generator/analyzer.py