[issue24400] Awaitable ABC incompatible with functools.singledispatch
Yury Selivanov
report at bugs.python.org
Wed Jun 10 00:08:27 CEST 2015
Yury Selivanov added the comment:
Please find attached a new patch.
Stefan, while working on the patch, I (re-)discovered that __await__ for coroutines should return an iterator that also implements '.send', '.throw', and '.close', to comply with PEP 380 yield from implementation: https://www.python.org/dev/peps/pep-0380/#proposal
Please try to compile this python file: https://gist.github.com/1st1/4ee1d072309068dd2798
----------
Added file: http://bugs.python.org/file39669/corotype.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24400>
_______________________________________
More information about the Python-bugs-list
mailing list