]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-119711: describe `create_datagram_endpoint`'s behavior in asyncio when...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 28 Jul 2025 11:03:08 +0000 (13:03 +0200)
committerGitHub <noreply@github.com>
Mon, 28 Jul 2025 11:03:08 +0000 (11:03 +0000)
gh-119711: describe `create_datagram_endpoint`'s behavior in asyncio when `local_addr` is `None` (GH-136913)
(cherry picked from commit 1481384141342479b3ba4b89f653b4e5bef0d272)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Doc/library/asyncio-eventloop.rst

index 20b1ccd105109ea5a0478a191131d56d4687c8f4..d8dd03aba5c74a9c98ea640f074735c6dfaf275f 100644 (file)
@@ -595,6 +595,12 @@ Opening network connections
      to bind the socket locally.  The *local_host* and *local_port*
      are looked up using :meth:`getaddrinfo`.
 
+     .. note::
+
+        On Windows, when using the proactor event loop with ``local_addr=None``,
+        an :exc:`OSError` with :attr:`!errno.WSAEINVAL` will be raised
+        when running it.
+
    * *remote_addr*, if given, is a ``(remote_host, remote_port)`` tuple used
      to connect the socket to a remote address.  The *remote_host* and
      *remote_port* are looked up using :meth:`getaddrinfo`.