Add Python 3.15 socket SSL and platform updates#15734
Open
JelleZijlstra wants to merge 11 commits intopython:mainfrom
Open
Add Python 3.15 socket SSL and platform updates#15734JelleZijlstra wants to merge 11 commits intopython:mainfrom
JelleZijlstra wants to merge 11 commits intopython:mainfrom
Conversation
This comment has been minimized.
This comment has been minimized.
JelleZijlstra
commented
May 8, 2026
| def read_byte(self) -> int: ... | ||
| def readline(self) -> bytes: ... | ||
| def resize(self, newsize: int, /) -> None: ... | ||
| if sys.version_info < (3, 15) or sys.platform != "darwin": |
Member
Author
There was a problem hiding this comment.
Apparently this is correct: python/cpython#138276. It used to be available on all platforms (but it would fail on platforms without MREMAP), now it only exists if it works.
This comment has been minimized.
This comment has been minimized.
hauntsaninja
reviewed
May 9, 2026
| _socket.CAN_ISOTP_LL_OPTS | ||
| _socket.CAN_ISOTP_OPTS | ||
| _socket.CAN_ISOTP_RECV_FC | ||
| (_socket.CAN_ISOTP_LL_OPTS)? |
Collaborator
There was a problem hiding this comment.
do these definitely need the ()? magic trick?
Member
Author
There was a problem hiding this comment.
Not really, I cleaned up a bunch more socket constants that should have been added.
… codex/python315-socket-ssl
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Contributor
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
srittau
requested changes
May 9, 2026
| if sys.version_info >= (3, 13): | ||
| if sys.version_info >= (3, 15): | ||
| pass | ||
| elif sys.version_info >= (3, 13): |
Collaborator
There was a problem hiding this comment.
i'm on mobile right now, so I can't select multiple rows, but can we fix the version_info check to use the standard format?
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
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.
Summary:
hashlib,mmap,platform, andresource.Relevant report entries:
hashlib.scrypttohashlib.__all__for Python 3.15 (CPython source: https://github.com/python/cpython/blob/e81025e6d2e01e38c5a5b656af5739ac9df5ff55/Lib/hashlib.py)mmap.mmap(trackfd=...)on Windows,mmap.mmap.flush(flags=...),mmap.mmap.set_name(), and 3.15 optionalNonebounds forfind(),rfind(), andmadvise(); removedmmap.mmap.resize()on Darwin (source: https://github.com/python/cpython/blob/main/Modules/mmapmodule.c)resourceconstantsRLIMIT_NTHR,RLIMIT_UMTXP,RLIMIT_THREADS,RLIM_SAVED_CUR, andRLIM_SAVED_MAX(CPython PR: Add more RLIMIT_* constants cpython#137512; source: https://github.com/python/cpython/blob/main/Modules/resource.c)platform.java_verfor 3.15 (source: https://github.com/python/cpython/blob/main/Lib/platform.py)