Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-71566: Fix SocketType introduction in the socket documentation.#93288

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
xiaochen7 wants to merge5 commits intopython:main
base:main
Choose a base branch
Loading
fromxiaochen7:gh-71566

Conversation

xiaochen7
Copy link
Contributor

@xiaochen7xiaochen7 commentedMay 27, 2022
edited by bedevere-appbot
Loading

In theprevious commit, SocketType was changed to the base class for the socket object type.

The purpose of this PR is to align the documentation with the above modifications.

@ghost
Copy link

ghost commentedMay 27, 2022
edited by ghost
Loading

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-bot
Copy link

Most changes to Pythonrequire a NEWS entry.

Please add it using theblurb_it web app or theblurb command-line tool.

@bedevere-botbedevere-bot added docsDocumentation in the Doc dir awaiting review labelsMay 27, 2022
@AA-Turner
Copy link
Member

You don't need NEWS, please delete it.

A

xiaochen7 reacted with thumbs up emoji

@AA-TurnerAA-Turner added needs backport to 3.10only security fixes needs backport to 3.11only security fixes labelsMay 27, 2022
Copy link
Member

@AA-TurnerAA-Turner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Two wording suggestions.

A

Comment on lines 829 to 830
This is the base class for a type object of socket objects, and
``isinstance(socket(...), SocketType)`` returns ``True``.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
This is the base class fora type object ofsocket objects,and
``isinstance(socket(...), SocketType)``returns ``True``.
This is the base class for socket objects,such that
``isinstance(socket(...), SocketType)``is ``True``.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thank you for your professional advice. As we can see,socket.SocketType is the base class for the type objectsocket.socket. Consider that elsewhere in this documentsocket object refers to an instance of the type objectsocket.socket. Wouldn't it be less precise if we just said thatSocketType is the base class ofsocket objects? Looking forward to your more suggestions.

``isinstance(socket(...), SocketType)`` returns ``True``.

.. versionchanged:: 3.0
SocketType is now the base class for the socket object type.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
SocketType isnowthe base class forthesocketobject type.
SocketType is the base class for socketobjects
rather than being ``type(socket(...))``` directly.

@serhiy-storchakaserhiy-storchaka added needs backport to 3.12only security fixes needs backport to 3.13bugs and security fixes and removed needs backport to 3.10only security fixes needs backport to 3.11only security fixes labelsMay 9, 2024
@hugovkhugovk removed the needs backport to 3.12only security fixes labelApr 10, 2025
@serhiy-storchakaserhiy-storchaka added the needs backport to 3.14bugs and security fixes labelMay 8, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@AA-TurnerAA-TurnerAA-Turner requested changes

Assignees
No one assigned
Labels
awaiting core reviewdocsDocumentation in the Doc dirneeds backport to 3.13bugs and security fixesneeds backport to 3.14bugs and security fixesskip news
Projects
Status: Todo
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

6 participants
@xiaochen7@bedevere-bot@AA-Turner@hugovk@serhiy-storchaka@willingc

[8]ページ先頭

©2009-2025 Movatter.jp