[issue24400] Awaitable ABC incompatible with functools.singledispatch

Stefan Behnel report at bugs.python.org
Tue Jun 9 19:09:16 CEST 2015


Stefan Behnel added the comment:

Looks good, simplifies the code visibly and makes the implementation quite similar to the one I wrote for Cython.

I like the fact that it separates generators from coroutines at an isinstance() level. The fact that "async def" functions currently have the same type as yield-based generators smells too much like an implementation detail to keep it visible at the language level.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24400>
_______________________________________


More information about the Python-bugs-list mailing list