diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-08-07 00:53:09 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-08-07 00:53:09 (GMT) |
commit | b37df519c793d40718fda78a9961811fae973f36 (patch) | |
tree | b4a98c5e8e3e070f32a27c36c6f77daeaeb3d141 /Python | |
parent | a0abb4404a839787bc0791c7ea3b261fcd146652 (diff) | |
download | cpython-b37df519c793d40718fda78a9961811fae973f36.zip cpython-b37df519c793d40718fda78a9961811fae973f36.tar.gz cpython-b37df519c793d40718fda78a9961811fae973f36.tar.bz2 |
fix yield from return value on custom iterators (closes #15568)
Diffstat (limited to 'Python')
-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 7e9318b..82bfcc6 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); } |