FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.13][3.14] gh-89554: Document socket.SocketType as a class (#150683) (#151245) by vstinner · Pull Request #151254 · python/cpython · GitHub

Repository navigation

[3.13][3.14] gh-89554: Document socket.SocketType as a class (#150683) (#151245) - #151254

Merged
vstinner merged 1 commit into
python:3.13from
vstinner:socket_doc13
Jun 10, 2026
Merged

vstinner merged 1 commit into
python:3.13from
vstinner:socket_doc13

Conversation

Copy link
Copy Markdown
Member

gh-89554: Document socket.SocketType as a class (#150683)

socket.SocketType is a class (re-exported from _socket as an alias of _socket.socket, the base class of socket.socket), but was documented with the ".. data::" directive, so ":class:" cross-references to it cannot resolve against a py:class target.

Switch the entry to ".. class::", correct the misleading description (SocketType is the base class of the socket type, not "type(socket(...))" which is socket.socket; addresses gh-88427), move it into the Socket Objects section, and document the socket object methods and attributes nested under the socket class, dropping the redundant "socket." prefix.

Backport to 3.13: Replace ":platform: Windows" with
".. availability:: Windows" in ioctl() method.

(cherry picked from commit a621e8a)

(cherry picked from commit 4ef6a37)

…150683) (python#151245)

pythongh-89554: Document socket.SocketType as a class (python#150683)

socket.SocketType is a class (re-exported from _socket as an alias of
_socket.socket, the base class of socket.socket), but was documented with
the ".. data::" directive, so ":class:" cross-references to it cannot
resolve against a py:class target.

Switch the entry to ".. class::", correct the misleading description
(SocketType is the base class of the socket type, not "type(socket(...))"
which is socket.socket; addresses pythongh-88427), move it into the Socket
Objects section, and document the socket object methods and attributes
nested under the socket class, dropping the redundant "socket." prefix.

Backport to 3.13: Replace ":platform: Windows" with
".. availability:: Windows" in ioctl() method.

(cherry picked from commit a621e8a)

Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
(cherry picked from commit 4ef6a37)
bedevere-app Bot added docs Documentation in the Doc dir skip news labels Jun 10, 2026
github-project-automation Bot moved this to Todo in Docs PRs Jun 10, 2026
vstinner merged commit a1f43ef into python:3.13 Jun 10, 2026
28 checks passed
github-project-automation Bot moved this from Todo to Done in Docs PRs Jun 10, 2026
vstinner deleted the socket_doc13 branch June 10, 2026 17:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL