From b37df519c793d40718fda78a9961811fae973f36 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 6 Aug 2012 17:53:09 -0700 Subject: fix yield from return value on custom iterators (closes #15568) --- Python/ceval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python') 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); } -- cgit v1.2.1