[Python-ideas] async/await in Python
Greg Ewing
greg.ewing at canterbury.ac.nz
Wed Apr 22 07:50:39 CEST 2015
Yury Selivanov wrote:
> Of course we can have __cocall__ (and no __call__) for
> regular coroutines and __call__ (no __cocall__) for
> coroutine-generators, but this also looks suspicious.
I think it makes sense. The PEP 3152 equivalent of
__aiter__ would be called __coiter__ and called with
a cocall.
Or maybe not. My head is starting to feel explodey
again.
--
Greg
More information about the Python-ideas
mailing list