Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 78458:ee55f8e4fb50
fix yield from return value on custom iterators (closes #15568)
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Mon, 06 Aug 2012 17:53:09 -0700 |
| parents | cfbf6aa5c9e3 |
| children | d18df4c90515 5a13f9b842b1 |
line wrap: on
line diff
--- a/Python/ceval.c Mon Aug 06 06:40:48 2012 -0700 +++ b/Python/ceval.c Mon Aug 06 17:53:09 2012 -0700 @@ -1843,7 +1843,7 @@ } 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); }
