Skip to content
Draft
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
6 changes: 3 additions & 3 deletions Doc/library/socket.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1481,7 +1481,7 @@ Socket Objects
of :meth:`socket.getpeername` but not the actual OS resource. Unlike
:func:`socket.fromfd`, *fileno* will return the same socket and not a
duplicate. This may help close a detached socket using
:meth:`socket.close`.
:meth:`~socket.socket.close`.

The newly created socket is :ref:`non-inheritable <fd_inheritance>`.

Expand Down Expand Up @@ -1528,7 +1528,7 @@ Socket Objects

.. versionchanged:: 3.2
Support for the :term:`context manager` protocol was added. Exiting the
context manager is equivalent to calling :meth:`~socket.close`.
context manager is equivalent to calling :meth:`~socket.socket.close`.


.. method:: accept()
Expand Down Expand Up @@ -1753,7 +1753,7 @@ Socket Objects

Closing the file object returned by :meth:`makefile` won't close the
original socket unless all other file objects have been closed and
:meth:`socket.close` has been called on the socket object.
:meth:`~socket.socket.close` has been called on the socket object.

.. note::

Expand Down
Loading