[issue24400] Awaitable ABC incompatible with functools.singledispatch
Yury Selivanov
report at bugs.python.org
Sat Jun 20 00:04:06 CEST 2015
Yury Selivanov added the comment:
Actually, I'm not sure that we should use 'cr_*' prefix instead of 'gi_*' for coroutines.
Coroutines reusing generators machinery is a two-fold thing: on the one hand it makes the implementation simpler; on the other -- __await__ must return an *iterator*. If you want to push values into __await__, it must return a *generator*. Essentially, as Guido said in one of his emails, we should see PEP 492 as a refinement of 'yield from' and existing generator-based coroutines. I love the idea of separating types for coroutines and generators, but I'm not so sure about 'cr_*' prefix.
Nick, Guido, what do you think about this?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24400>
_______________________________________
More information about the Python-bugs-list
mailing list