[issue24400] Awaitable ABC incompatible with functools.singledispatch

Yury Selivanov report at bugs.python.org
Fri Jun 19 18:27:50 CEST 2015


Yury Selivanov added the comment:

New patch is attached.

Updates:

1. Coroutine type now has 'cr_*' slots *both* in Python *and* in C.

2. set_coroutine_wrapper now works *only* on coroutines created by 'async def' functions (generators wrapped with types.coroutine won't be intercepted).

3. RuntimeWarning that coroutine wasn't ever awaited will be raised *only* for 'async def' coroutines.

4. Coroutine objects no longer have 'CO_GENERATOR' flag.

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

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


More information about the Python-bugs-list mailing list