]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-101786: Clarify docs that asyncio.Server.sockets is a socket-like TransportSocket...
authorCarol Willing <carolcode@willingconsulting.com>
Wed, 26 Apr 2023 12:32:24 +0000 (06:32 -0600)
committerGitHub <noreply@github.com>
Wed, 26 Apr 2023 12:32:24 +0000 (06:32 -0600)
Clarify that asyncio.Server.sockets is a socket-like TransportSocket

Doc/library/asyncio-eventloop.rst

index 5138afc2bbe47beacbbab34d47a42241a113ef9e..e3dcd088be2fbd60d4538e422efc47cdaea7f2be 100644 (file)
@@ -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