https://github.com/python/cpython/commit/d696e189d057d6653412a298e050c991ee406673 commit: d696e189d057d6653412a298e050c991ee406673 branch: 3.15 author: Miss Islington (bot) <[email protected]> committer: hugovk <[email protected]> date: 2026-09-15T13:13:53Z summary:
[3.15] gh-115426: Fix cross-references to `socket.socket.close()` (GH-157295) (#157330) Co-authored-by: Jade <[email protected]> files: M Doc/library/socket.rst diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index 836aa91bb0885b..a17166b752b2f0 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -1494,7 +1494,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>`. @@ -1541,7 +1541,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() @@ -1766,7 +1766,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:: _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
