No I didn't. Those examples that I wrote are equivalent, except that the second will miss a frame on the stack.
2014/1/21 Greg Ewing firstname.lastname@example.org
Jonathan Slenders wrote:
def a(): return (yield from b())
You could write it as:
def a(): return b()
I'm guessing you mean
def a(): return from b()
but that wouldn't be a coroutine, because it doesn't contain a 'yield' anywhere.
Python-ideas mailing list Pythonemail@example.com https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/