[issue25888] awaiting on coroutine that is being awaited should be an error

Yury Selivanov report at bugs.python.org
Mon Jan 11 19:07:49 EST 2016


Yury Selivanov added the comment:

Will commit this patch tomorrow to 3.5 and 3.6.

It only affects coroutines (async defs): if an await expression is used on a coroutine object while it's being already awaited by another coroutine, a `RuntimeError("coroutine is being awaited already")` will be triggered.

----------

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


More information about the Python-bugs-list mailing list