[issue28600] asyncio: Optimize loop.call_soon
Yury Selivanov
report at bugs.python.org
Thu Nov 3 14:48:01 EDT 2016
Yury Selivanov added the comment:
> IIRC haypo added the check because people called `.call_later()` with coroutine instead of callback very often.
We'll update asyncio docs in 3.6 with a tutorial to focus on coroutines (not on low-level event loop). This should leave the loop API to advanced users.
> But checking in debug mode looks very reasonable to me if it is so expensive.
Exactly.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28600>
_______________________________________
More information about the Python-bugs-list
mailing list