[issue39698] asyncio.sleep() does not adhere to time.sleep() behavior for negative numbers
Marco Sulla
report at bugs.python.org
Wed Feb 26 14:46:12 EST 2020
Marco Sulla <launchpad.net at marco.sulla.e4ward.com> added the comment:
> I also distinctly remember seeing code (and writing such code myself) that performs computation on timeouts and does not care if the end value goes below 0.
This is not a good statistics. Frankly we can't measure the impact of the change from these considerations. And furthermore, `asyncio.sleep()` is used often, testing and mocking apart? I doubt it.
> we always try to have a very good explanation "why" we want to bother ourselves and users to break backwards compat.
Coherence and unhide mistakes are *very* strong points.
That said, I'm not so much interested in practice. Do as you wish. The problem is I always considered Python a very elegant programming language, and this behavior is not elegant at all. But, hey, amen.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39698>
_______________________________________
More information about the Python-bugs-list
mailing list