[issue24400] Awaitable ABC incompatible with functools.singledispatch

Yury Selivanov report at bugs.python.org
Wed Jun 10 17:12:09 CEST 2015


Yury Selivanov added the comment:

> With the two changes I described things appear to be working, although I've only done light testing so far.

Glad to hear that!  I've attached a new patch fixing types.coroutine per your request.

> More generally, the inconsistency between isgenerator() and iscoroutine() is kind of odd. I would expect that either all inspect functions or none of them would use a suitable ABC if one exists.

iscoroutine() is just a newer API than isgenerator().  I'll create a new issue for this soon.

----------
Added file: http://bugs.python.org/file39675/corotype.patch

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


More information about the Python-bugs-list mailing list