mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Patch #966493: Cleanup generator/eval_frame exposure.
This commit is contained in:
parent
634893d1a3
commit
8d97e33bb7
5 changed files with 13 additions and 18 deletions
|
@ -44,7 +44,7 @@ gen_iternext(PyGenObject *gen)
|
|||
f->f_back = tstate->frame;
|
||||
|
||||
gen->gi_running = 1;
|
||||
result = PyEval_EvaluateFrame((PyObject *)f);
|
||||
result = PyEval_EvalFrame(f);
|
||||
gen->gi_running = 0;
|
||||
|
||||
/* Don't keep the reference to f_back any longer than necessary. It
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue