From c3a723b46bfdbdb550d211094cd55fc7629e1f23 Mon Sep 17 00:00:00 2001 From: Jack Nelson Date: Wed, 19 Jul 2023 15:24:24 -0400 Subject: [PATCH 1/2] add server expose notice --- Doc/library/asyncio-eventloop.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst index 38f2e2f510c176..61dea7b705c9c5 100644 --- a/Doc/library/asyncio-eventloop.rst +++ b/Doc/library/asyncio-eventloop.rst @@ -1593,6 +1593,9 @@ Do not instantiate the :class:`Server` class directly. .. versionchanged:: 3.7 Server object is an asynchronous context manager since Python 3.7. + .. versionchanged:: 3.11 + :class:`base_events.Server` was exposed as :class:`Server` since Python 3.9.11 3.10.3 and 3.11. + .. method:: close() Stop serving: close listening sockets and set the :attr:`sockets` From 8b32afe2321d12387b17b2c3bd37aec1040d71be Mon Sep 17 00:00:00 2001 From: Jack Nelson Date: Wed, 19 Jul 2023 12:42:51 -0700 Subject: [PATCH 2/2] Update Doc/library/asyncio-eventloop.rst Co-authored-by: Alex Waygood --- 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 61dea7b705c9c5..1ef8a5ab832e47 100644 --- a/Doc/library/asyncio-eventloop.rst +++ b/Doc/library/asyncio-eventloop.rst @@ -1594,7 +1594,7 @@ Do not instantiate the :class:`Server` class directly. Server object is an asynchronous context manager since Python 3.7. .. versionchanged:: 3.11 - :class:`base_events.Server` was exposed as :class:`Server` since Python 3.9.11 3.10.3 and 3.11. + This class was exposed publicly as ``asyncio.Server`` in Python 3.9.11, 3.10.3 and 3.11. .. method:: close()