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 <greg.ewing@canterbury.ac.nz>
Jonathan Slenders wrote:

    @coroutine
    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.

--
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/