diff options
author | Tian Gao <gaogaotiantian@hotmail.com> | 2024-05-04 11:12:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-04 11:12:10 (GMT) |
commit | b034f14a4b6e9197d3926046721b8b4b4b4f5b3d (patch) | |
tree | 2d641189f3401526d264d13e5b855c576c29dc63 /Python/sysmodule.c | |
parent | 1ab6356ebec25f216a0eddbd81225abcb93f2d55 (diff) | |
download | cpython-b034f14a4b6e9197d3926046721b8b4b4b4f5b3d.zip cpython-b034f14a4b6e9197d3926046721b8b4b4b4f5b3d.tar.gz cpython-b034f14a4b6e9197d3926046721b8b4b4b4f5b3d.tar.bz2 |
gh-74929: Implement PEP 667 (GH-115153)
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 645b76fc..bd7f821 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -1022,13 +1022,6 @@ static PyObject * call_trampoline(PyThreadState *tstate, PyObject* callback, PyFrameObject *frame, int what, PyObject *arg) { - /* Discard any previous modifications the frame's fast locals */ - if (frame->f_fast_as_locals) { - if (PyFrame_FastToLocalsWithError(frame) < 0) { - return NULL; - } - } - /* call the Python-level function */ if (arg == NULL) { arg = Py_None; @@ -1036,7 +1029,6 @@ call_trampoline(PyThreadState *tstate, PyObject* callback, PyObject *args[3] = {(PyObject *)frame, whatstrings[what], arg}; PyObject *result = _PyObject_VectorcallTstate(tstate, callback, args, 3, NULL); - PyFrame_LocalsToFast(frame, 1); return result; } |