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 <>
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
Code of Conduct: