]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-119711: describe `create_datagram_endpoint`'s behavior in asyncio when...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 10 Aug 2025 13:52:30 +0000 (15:52 +0200)
committerGitHub <noreply@github.com>
Sun, 10 Aug 2025 13:52:30 +0000 (16:52 +0300)
Co-authored-by: AN Long <aisk@users.noreply.github.com>
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`.