mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-105331: Change asyncio.sleep
to raise `ValueError
for nan (#105641)
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
This commit is contained in:
parent
9544948e7e
commit
f0fb782ddb
4 changed files with 24 additions and 0 deletions
|
@ -426,6 +426,9 @@ Sleeping
|
|||
.. versionchanged:: 3.10
|
||||
Removed the *loop* parameter.
|
||||
|
||||
.. versionchanged:: 3.13
|
||||
Raises :exc:`ValueError` if *delay* is :data:`~math.nan`.
|
||||
|
||||
|
||||
Running Tasks Concurrently
|
||||
==========================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue