diff options
author | Matthieu Dartiailh <m.dartiailh@gmail.com> | 2023-02-07 09:34:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-07 09:34:21 (GMT) |
commit | ae62bddaf81176a7e55f95f18d55621c9c46c23d (patch) | |
tree | 0c7a661b7abd64546ebe0b8a495f3004ab30a6f0 /Python | |
parent | c4de6b1d52304a0a9cdfafc1dad5098993710404 (diff) | |
download | cpython-ae62bddaf81176a7e55f95f18d55621c9c46c23d.zip cpython-ae62bddaf81176a7e55f95f18d55621c9c46c23d.tar.gz cpython-ae62bddaf81176a7e55f95f18d55621c9c46c23d.tar.bz2 |
gh-101072: support default and kw default in PyEval_EvalCodeEx for 3.11+ (#101127)
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 2e6fed5..ecb5bf9 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -1761,9 +1761,6 @@ PyEval_EvalCodeEx(PyObject *_co, PyObject *globals, PyObject *locals, } allargs = newargs; } - for (int i = 0; i < kwcount; i++) { - PyTuple_SET_ITEM(kwnames, i, Py_NewRef(kws[2*i])); - } PyFrameConstructor constr = { .fc_globals = globals, .fc_builtins = builtins, |