GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-71566: Fix SocketType introduction in the socket documentation. by xiaochen7 · Pull Request #93288 · python/cpython Conversation
|
|
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
You don't need NEWS, please delete it. A |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Two wording suggestions.
A
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| This is the base class for a type object of socket objects, and | ||
| ``isinstance(socket(...), SocketType)`` returns ``True``. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| This is the base class for a type object of socket objects, and | |
| ``isinstance(socket(...), SocketType)`` returns ``True``. | |
| This is the base class for socket objects, such that | |
| ``isinstance(socket(...), SocketType)`` is ``True``. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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 object socket.socket. Consider that elsewhere in this document socket object refers to an instance of the type object socket.socket. Wouldn't it be less precise if we just said that SocketType is the base class of socket objects? Looking forward to your more suggestions.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| ``isinstance(socket(...), SocketType)`` returns ``True``. | ||
|
|
||
| .. versionchanged:: 3.0 | ||
| SocketType is now the base class for the socket object type. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| SocketType is now the base class for the socket object type. | |
| SocketType is the base class for socket objects | |
| rather than being ``type(socket(...))``` directly. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| .. versionchanged:: 3.0 | ||
| SocketType is the base class for the socket object type rather than | ||
| being ``type(socket(...))``` directly. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
There is a RST marker error:
| being ``type(socket(...))``` directly. | |
| being ``type(socket(...))`` directly. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This PR is stale because it has been open for 90 days with no activity. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Already fixed in #150683 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.