[Python-Dev] async/await in Python; v2

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Apr 23 10:39:51 CEST 2015


Paul Sokolovsky wrote:
> And having both asymmetric and symmetric
> would quite confusing, especially that symmetric are more powerful and
> asymmetric can be easily implemented in terms of symmetric using
> continuation-passing style.

You can also use a trampoline of some kind to
relay values back and forth between generators,
to get something symmetric.

-- 
Greg


More information about the Python-Dev mailing list