mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
gh-101072: support default and kw default in PyEval_EvalCodeEx for 3.11+ (#101127)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
parent
c4de6b1d52
commit
ae62bddaf8
5 changed files with 206 additions and 6 deletions
|
@ -87,8 +87,8 @@ _PyFunction_FromConstructor(PyFrameConstructor *constr)
|
|||
op->func_name = Py_NewRef(constr->fc_name);
|
||||
op->func_qualname = Py_NewRef(constr->fc_qualname);
|
||||
op->func_code = Py_NewRef(constr->fc_code);
|
||||
op->func_defaults = NULL;
|
||||
op->func_kwdefaults = NULL;
|
||||
op->func_defaults = Py_XNewRef(constr->fc_defaults);
|
||||
op->func_kwdefaults = Py_XNewRef(constr->fc_kwdefaults);
|
||||
op->func_closure = Py_XNewRef(constr->fc_closure);
|
||||
op->func_doc = Py_NewRef(Py_None);
|
||||
op->func_dict = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue