[issue24400] Awaitable ABC incompatible with functools.singledispatch
Nick Coghlan
report at bugs.python.org
Sat Jun 20 10:03:29 CEST 2015
Nick Coghlan added the comment:
Based on that last comment, I realised there's something else @types.coroutine should now do: delegate both the existing gi_* attributes *and* the new cr_* attributes to the underlying generator.
That should allow all of the poking around in code object flags to be encapsulated entirely in the types module, as the 3 kinds of object would subsequently be distinguishable by their attributes:
gi_running: generator-iterator or generator-as-coroutine
cr_running: native coroutine or generator-as-coroutine
both: generator-as-coroutine
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24400>
_______________________________________
More information about the Python-bugs-list
mailing list