]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-119711: describe `create_datagram_endpoint`'s behavior in asyncio when `local_addr...
authorAN Long <aisk@users.noreply.github.com>
Mon, 28 Jul 2025 10:55:59 +0000 (19:55 +0900)
committerGitHub <noreply@github.com>
Mon, 28 Jul 2025 10:55:59 +0000 (16:25 +0530)
Doc/library/asyncio-eventloop.rst

index 91970c282391f7ae117d5f07bb1b519df15b3a42..9561c40776f01c77c541468fe11c0911b3a36818 100644 (file)
@@ -611,6 +611,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`.