[issue39698] asyncio.sleep() does not adhere to time.sleep() behavior for negative numbers

Andrew Svetlov report at bugs.python.org
Thu Feb 20 09:23:47 EST 2020


Andrew Svetlov <andrew.svetlov at gmail.com> added the comment:

The ship has sailed, this change breaks a lot of existing code without a strong reason.
I recall very many cases in third-party libraries and commercial applications where a negative argument for asyncio.sleep() is processed as asyncio.sleep(0) without failure.

----------

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


More information about the Python-bugs-list mailing list