[issue24495] asyncio.ensure_future() AttributeError with “async def” coroutines

Yury Selivanov report at bugs.python.org
Wed Jun 24 16:57:31 CEST 2015


Yury Selivanov added the comment:

Should be fixed now. Thanks for discovering this, Martin!

Victor, I'll make a PR on github/asyncio with some refactoring or CoroWrapper etc.  The code became too cumbersome, and has to be properly refactored.  At least we should have one wrapper class for generator based coroutines, and another one for 'async def' ones.

----------
resolution:  -> fixed
stage: needs patch -> resolved
status: open -> closed

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


More information about the Python-bugs-list mailing list