From d42d97952809588703c4966e83bdf19a120c07ba Mon Sep 17 00:00:00 2001 From: AN Long Date: Mon, 21 Jul 2025 18:31:57 +0900 Subject: [PATCH 1/2] Update create_datagram_endpoint's doc in asyncio while local_addr=None --- Doc/library/asyncio-eventloop.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst index 91970c282391f7..c63239c24d5199 100644 --- a/Doc/library/asyncio-eventloop.rst +++ b/Doc/library/asyncio-eventloop.rst @@ -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`. From ded229cc06b45b12619fac2e80f587eb629e56a8 Mon Sep 17 00:00:00 2001 From: AN Long Date: Mon, 21 Jul 2025 18:41:25 +0900 Subject: [PATCH 2/2] Fix document build on non Windows platform --- Doc/library/asyncio-eventloop.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst index c63239c24d5199..9561c40776f01c 100644 --- a/Doc/library/asyncio-eventloop.rst +++ b/Doc/library/asyncio-eventloop.rst @@ -614,7 +614,7 @@ Opening network connections .. note:: On Windows, when using the proactor event loop with ``local_addr=None``, - an :exc:`OSError` with :attr:`errno.WSAEINVAL` will be raised + 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 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy