This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Marco Sulla
Recipients Marco Sulla, asvetlov, yselivanov
Date 2020-02-20.11:44:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1582199063.86.0.853270870549.issue39698@roundup.psfhosted.org>
In-reply-to
Content
Python 3.9.0a3+ (heads/master-dirty:f2ee21d858, Feb 19 2020, 23:19:22) 
[GCC 9.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> time.sleep(-1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: sleep length must be non-negative
>>> import asyncio
>>> async def f():
...     await asyncio.sleep(-1)
...     print("no exception")
... 
>>> asyncio.run(f())
no exception

I think that also `asyncio.sleep()` should raise `ValueError` if the argument is less than zero.
History
Date User Action Args
2020-02-20 11:44:23Marco Sullasetrecipients: + Marco Sulla, asvetlov, yselivanov
2020-02-20 11:44:23Marco Sullasetmessageid: <1582199063.86.0.853270870549.issue39698@roundup.psfhosted.org>
2020-02-20 11:44:23Marco Sullalinkissue39698 messages
2020-02-20 11:44:23Marco Sullacreate