-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
gh-88427: Deprecate socket.SocketType
#126272
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
rruuaanng
wants to merge
48
commits into
python:main
Choose a base branch
from
rruuaanng:gh88427
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 35 commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
341a29e
deprecated SocketType
rruuaanng a4ef847
_socket.socket change to _socket.SocketType
rruuaanng 5a57cb1
Remove return
rruuaanng 72f7c3d
Change docs
rruuaanng 58b305d
Change NEWS
rruuaanng 73b14ea
Change docs
rruuaanng 2c2e8e3
Change NEWS
rruuaanng 3ea9169
Move import
rruuaanng 3b7d187
Add return
rruuaanng 188a924
socket rename to SocketType
rruuaanng ce4bfa6
Remove defined
rruuaanng 362dbab
Return _socket.socket
rruuaanng 5042f2f
Add AttributeError
rruuaanng 4676d96
Add pending3.16
rruuaanng 3e85bc7
warn change to _deprecated
rruuaanng da2aabe
Change info
rruuaanng 0afac16
Remove ~
rruuaanng f2736c2
Change NEWS
rruuaanng 2fdba78
Change pending
rruuaanng 7f841cf
Change NEWS
rruuaanng 36598e1
Change docs
rruuaanng 931ce2b
Change removal
rruuaanng 28e78d0
Add some space
rruuaanng aa3ab5b
Add :
rruuaanng 45a4f34
Remove ‘in type annotations’
rruuaanng 261d87f
Add newline(boom)
rruuaanng de41cb5
Add module __getattr__
rruuaanng e4302d0
Remove redundant test method
rruuaanng 705492b
Restore SocketType
rruuaanng 4752f84
Change cmod | remove getattr in socket.py
rruuaanng 44c5ed9
Restore getattr in socket.py
rruuaanng f05ae78
Remove getattr in socket.py
rruuaanng b30dcb9
Add free
rruuaanng eead93e
Merge branch 'gh88427' of https://github.com/rruuaanng/cpython into g…
rruuaanng 02a45bd
Recover __getattr__ in socket.py
rruuaanng 936f05f
Change warn desc
rruuaanng 377b414
Recover email
rruuaanng 538acd0
Change warn desc
rruuaanng d584e6d
Change warn desc
rruuaanng 4d71bce
Remove SocketType original definition
rruuaanng 347c8e3
_socket.socket change to _socket.SocketType
rruuaanng e625c64
strcmp change to PyUnicode_EqualToUTF8
rruuaanng a909333
Merge branch 'gh88427' of https://github.com/rruuaanng/cpython into g…
rruuaanng 0d836c4
Use a better implementation
rruuaanng 38efc89
Clear CI error
rruuaanng e07a953
Add cast
rruuaanng fae620a
use _socket.SocketType
rruuaanng f029878
Merge branch 'main' into gh88427
rruuaanng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
1 change: 1 addition & 0 deletions
1
Misc/NEWS.d/next/Library/2024-11-01-20-09-53.gh-issue-88427.chYNT6.rst
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| :attr:`!socket.SocketType` is now deprecated and planned to be removed in Python 3.16. Use :class:`socket.socket` instead. |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.