]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45256: Avoid C calls for most Python to Python calls. (GH-28937)
authorMark Shannon <mark@hotpy.org>
Mon, 18 Oct 2021 08:57:24 +0000 (09:57 +0100)
committerGitHub <noreply@github.com>
Mon, 18 Oct 2021 08:57:24 +0000 (09:57 +0100)
commit70945d57e775b335eb58b734d82e68484063e835
treea8ce452431e8db3c44f3cc6ebb7845a420b60b1a
parentfd03917786a9036ee87b7df604dfb260cc2420c9
bpo-45256: Avoid C calls for most Python to Python calls. (GH-28937)

* Avoid making C calls for most calls to Python functions.

* Change initialize_locals(steal=true) and _PyTuple_FromArraySteal to consume the argument references regardless of whether they succeed or fail.
Lib/test/test_gdb.py
Objects/tupleobject.c
Python/ceval.c