From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 19 Jul 2023 20:03:44 +0000 (-0700) Subject: [3.11] gh-106882: Note that `asyncio.Server` is only publicly exposed on 3.11+ (GH... X-Git-Tag: v3.11.5~185 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a6313d78f21f79ca64dedd38e637509dc530a1b6;p=thirdparty%2FPython%2Fcpython.git [3.11] gh-106882: Note that `asyncio.Server` is only publicly exposed on 3.11+ (GH-106901) (#106903) gh-106882: Note that `asyncio.Server` is only publicly exposed on 3.11+ (GH-106901) And later versions of 3.10, 3.9 (cherry picked from commit 1e1f4e91a905bab3103250a3ceadac0693b926d9) Co-authored-by: Jack Nelson --- diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst index d6aab2a5fce1..83fb27060b21 100644 --- a/Doc/library/asyncio-eventloop.rst +++ b/Doc/library/asyncio-eventloop.rst @@ -1561,6 +1561,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 + This class was exposed publicly as ``asyncio.Server`` in Python 3.9.11, 3.10.3 and 3.11. + .. method:: close() Stop serving: close listening sockets and set the :attr:`sockets`