Skip to content

gh-101786: Clarify docs that asyncio.Server.sockets is a socket-like TransportSocket #103877

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Doc/library/asyncio-eventloop.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down