Jonathan Slenders wrote:I'm guessing you mean
@coroutine
def a():
return (yield from b())
You could write it as:
def a():
return b()
def a():
return from b()
but that wouldn't be a coroutine, because it doesn't
contain a 'yield' anywhere.
--
Greg
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/