Skip to content

Commit 7d9e9d7

Browse files
committed
gh-71566: Fix SocketType introduction in the socket documentation.
1 parent cb04a09 commit 7d9e9d7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Doc/library/socket.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -826,8 +826,11 @@ The following functions all create :ref:`socket objects <socket-objects>`.
826826

827827
.. data:: SocketType
828828

829-
This is a Python type object that represents the socket object type. It is the
830-
same as ``type(socket(...))``.
829+
This is the base class for a type object of socket objects, and
830+
``isinstance(socket(...), SocketType)`` returns ``True``.
831+
832+
.. versionchanged:: 3.0
833+
SocketType is now the base class for the socket object type.
831834

832835

833836
Other functions

0 commit comments

Comments
 (0)