mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix the closure argument to PyEval_EvalCodeEx. (GH-92175)
This commit is contained in:
parent
dd57fe1dd7
commit
c96da83a8e
2 changed files with 3 additions and 1 deletions
|
@ -0,0 +1 @@
|
|||
Fix the ``closure`` argument to :c:func:`PyEval_EvalCodeEx`.
|
|
@ -29,7 +29,8 @@ _PyFunction_FromConstructor(PyFrameConstructor *constr)
|
|||
op->func_code = constr->fc_code;
|
||||
op->func_defaults = NULL;
|
||||
op->func_kwdefaults = NULL;
|
||||
op->func_closure = NULL;
|
||||
Py_XINCREF(constr->fc_closure);
|
||||
op->func_closure = constr->fc_closure;
|
||||
Py_INCREF(Py_None);
|
||||
op->func_doc = Py_None;
|
||||
op->func_dict = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue