[Python-Dev] PEP 492: async/await in Python; v3

Stefan Behnel stefan_ml at behnel.de
Tue Apr 28 07:43:31 CEST 2015


Yury Selivanov schrieb am 28.04.2015 um 05:07:
> e) Should we add a coroutine ABC (for cython etc)?

Sounds like the right thing to do, yes. IIUC, a Coroutine would be a new
stand-alone ABC with send, throw and close methods.

Should a Generator then inherit from both Iterator and Coroutine, or would
that counter your intention to separate coroutines from generators as a
concept? I mean, they do share the same interface ...

It seems you're already aware of

https://bugs.python.org/issue24018

Stefan




More information about the Python-Dev mailing list