[issue24400] Awaitable ABC incompatible with functools.singledispatch

Yury Selivanov report at bugs.python.org
Fri Jul 3 08:46:55 CEST 2015


Yury Selivanov added the comment:

> If you want to cover the "iterable coroutine" case, why not add an inspect
> helper function for that? That's clearly a concrete type (even more
> concrete than a concrete type) that can be inspected.

Because I view "iterable coroutines" as a temporary, transitional thing.
'inspect.isawaitable()' might be useful in the future even when
we remove CO_ITERABLE_COROUTINE.

----------

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


More information about the Python-bugs-list mailing list