summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorCarol Willing <carolcode@willingconsulting.com>2023-04-26 12:32:24 (GMT)
committerGitHub <noreply@github.com>2023-04-26 12:32:24 (GMT)
commit1c0a9c5a1c84bc334f2bde9d45676f19d9632823 (patch)
treedd4d05262cfe43d55bd592a97560e902402bcc4e /Doc
parent214e5684c274f359d4cc34381f65e9f1a9952802 (diff)
downloadcpython-1c0a9c5a1c84bc334f2bde9d45676f19d9632823.zip
cpython-1c0a9c5a1c84bc334f2bde9d45676f19d9632823.tar.gz
cpython-1c0a9c5a1c84bc334f2bde9d45676f19d9632823.tar.bz2
gh-101786: Clarify docs that asyncio.Server.sockets is a socket-like TransportSocket (#103877)
Clarify that asyncio.Server.sockets is a socket-like TransportSocket
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/asyncio-eventloop.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst
index 5138afc..e3dcd08 100644
--- a/Doc/library/asyncio-eventloop.rst
+++ b/Doc/library/asyncio-eventloop.rst
@@ -1571,7 +1571,7 @@ Server objects are created by :meth:`loop.create_server`,
:meth:`loop.create_unix_server`, :func:`start_server`,
and :func:`start_unix_server` functions.
-Do not instantiate the class directly.
+Do not instantiate the :class:`Server` class directly.
.. class:: Server
@@ -1662,7 +1662,8 @@ Do not instantiate the class directly.
.. attribute:: sockets
- List of :class:`socket.socket` objects the server is listening on.
+ List of socket-like objects, ``asyncio.trsock.TransportSocket``, which
+ the server is listening on.
.. versionchanged:: 3.7
Prior to Python 3.7 ``Server.sockets`` used to return an