[docs] [issue34476] asyncio.sleep(0) not documented

Hrvoje Nikšić report at bugs.python.org
Sun Sep 30 04:49:31 EDT 2018


Hrvoje Nikšić <hniksic at gmail.com> added the comment:

Agreed about the special case. Minor change suggestion:

    ``sleep()` always suspends the current task, allowing other tasks to run.

That is, replace "switches execution to another [task]" because there might not be other tasks or they might not be executable - the idea is to allow them to run. Also, replace "pause" with "suspend" (because when delay<=0 there is not really a discernible pause).

https://github.com/python/cpython/pull/9643

If you'd still prefer the previous wording, I'll amend the PR.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34476>
_______________________________________


More information about the docs mailing list