diff options
| author | Benjamin Peterson <benjamin@python.org> | 2012-08-06 17:53:09 -0700 |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2012-08-06 17:53:09 -0700 |
| commit | f7855defe4c631c0821e773adc9c6c12e1062425 (patch) | |
| tree | 6fc49f82effd86cc76458c49c815c2cd3d97ddf9 /Python/ceval.c | |
| parent | c2139829a81731882d24de4262ee6e37a3b54914 (diff) | |
| download | cpython-f7855defe4c631c0821e773adc9c6c12e1062425.tar.gz | |
fix yield from return value on custom iterators (closes #15568)
Diffstat (limited to 'Python/ceval.c')
| -rw-r--r-- | Python/ceval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 7e9318bc0b..82bfcc6128 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -1843,7 +1843,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) } else { _Py_IDENTIFIER(send); if (u == Py_None) - retval = PyIter_Next(x); + retval = Py_TYPE(x)->tp_iternext(x); else retval = _PyObject_CallMethodId(x, &PyId_send, "O", u); } |
