mirror of
https://github.com/python/cpython.git
synced 2025-09-29 11:45:57 +00:00
[3.11] gh-101786: Clarify docs that asyncio.Server.sockets is a socket-like TransportSocket (GH-103877) (#103890)
Clarify that asyncio.Server.sockets is a socket-like TransportSocket
(cherry picked from commit 1c0a9c5a1c
)
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
This commit is contained in:
parent
410c2ce956
commit
c0b538b02f
1 changed files with 3 additions and 2 deletions
|
@ -1538,7 +1538,7 @@ Server objects are created by :meth:`loop.create_server`,
|
||||||
:meth:`loop.create_unix_server`, :func:`start_server`,
|
:meth:`loop.create_unix_server`, :func:`start_server`,
|
||||||
and :func:`start_unix_server` functions.
|
and :func:`start_unix_server` functions.
|
||||||
|
|
||||||
Do not instantiate the class directly.
|
Do not instantiate the :class:`Server` class directly.
|
||||||
|
|
||||||
.. class:: Server
|
.. class:: Server
|
||||||
|
|
||||||
|
@ -1629,7 +1629,8 @@ Do not instantiate the class directly.
|
||||||
|
|
||||||
.. attribute:: sockets
|
.. 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
|
.. versionchanged:: 3.7
|
||||||
Prior to Python 3.7 ``Server.sockets`` used to return an
|
Prior to Python 3.7 ``Server.sockets`` used to return an
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue