[Numpy-discussion] Python needs goto

Ryan May rmay31 at gmail.com
Fri Sep 25 17:39:26 EDT 2015


On Fri, Sep 25, 2015 at 3:02 PM, Nathaniel Smith <njs at pobox.com> wrote:
>
> The coroutines in 3.5 are just syntactic sugar around features that were
> added in *2*.5 (yield expressions and yield from), so no need to wait :-).
> They fall far short of arbitrary continuations, though.
>

Correction: Python 3.4 gained "yield from". Prior to that, you had a lot of
work to properly delegate from one generator to another.

But yes, async and await are just syntactic sugar (consistent with other
languages) for python 3.4's coroutine functionality.

Ryan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20150925/eb57c6a1/attachment.html>


More information about the NumPy-Discussion mailing list