]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40499: Mention that asyncio.wait() needs a non-empty aws set (GH-19900)
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 4 May 2020 21:56:00 +0000 (23:56 +0200)
committerGitHub <noreply@github.com>
Mon, 4 May 2020 21:56:00 +0000 (14:56 -0700)
A similar formulation was added in bpo-21596
(db74d982d43d98040e38665d843cbc8de4a082b1) but was lost in bpo-33649
(3faaa8857a42a36383bb18425444e597fc876797).

Doc/library/asyncio-task.rst
Misc/ACKS
Misc/NEWS.d/next/Documentation/2020-05-04-14-20-02.bpo-40499.tjLSo8.rst [new file with mode: 0644]

index d992b0011dc6607500bbb68eeca6dfd8a3ea1745..6627bec79823a32172860208600396f30bf6429d 100644 (file)
@@ -498,6 +498,8 @@ Waiting Primitives
    set concurrently and block until the condition specified
    by *return_when*.
 
+   The *aws* set must not be empty.
+
    Returns two sets of Tasks/Futures: ``(done, pending)``.
 
    Usage::
index 9221f6aae439ea062bb93c89ffa5bb24d6079c98..f744de6b1f66d2cf01b4725528775fd3a0d990c9 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1443,6 +1443,7 @@ Mike Romberg
 Armin Ronacher
 Case Roole
 Timothy Roscoe
+Joel Rosdahl
 Erik Rose
 Mark Roseman
 Josh Rosenberg
diff --git a/Misc/NEWS.d/next/Documentation/2020-05-04-14-20-02.bpo-40499.tjLSo8.rst b/Misc/NEWS.d/next/Documentation/2020-05-04-14-20-02.bpo-40499.tjLSo8.rst
new file mode 100644 (file)
index 0000000..2b7eccb
--- /dev/null
@@ -0,0 +1 @@
+Mention that :func:`asyncio.wait` requires a non-empty set of awaitables.