mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
[3.11] gh-101072: support default and kw default in PyEval_EvalCodeEx for 3.11+ (GH-101127) (#101636)
Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Matthieu Dartiailh <m.dartiailh@gmail.com>
This commit is contained in:
parent
358b02dac4
commit
955ba2839b
5 changed files with 201 additions and 6 deletions
|
@ -6489,10 +6489,6 @@ PyEval_EvalCodeEx(PyObject *_co, PyObject *globals, PyObject *locals,
|
|||
}
|
||||
allargs = newargs;
|
||||
}
|
||||
for (int i = 0; i < kwcount; i++) {
|
||||
Py_INCREF(kws[2*i]);
|
||||
PyTuple_SET_ITEM(kwnames, i, kws[2*i]);
|
||||
}
|
||||
PyFrameConstructor constr = {
|
||||
.fc_globals = globals,
|
||||
.fc_builtins = builtins,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue