GeezerVison is showing github.com — Add Python 3.15 socket SSL and platform updates by JelleZijlstra · Pull Request #15734 · python/typeshed
Conversation
Summary:
- Add Python 3.15 Linux CAN ISO-TP socket constants.
- Add Python 3.15 SSL signature algorithm, group, ciphersuite, and TLS 1.3 PSK APIs.
- Add small Python 3.15 platform/runtime updates for
hashlib, mmap, platform, and resource.
- Remove or narrow the matching 3.15 stubtest allowlist entries.
Relevant report entries:
- Added Linux CAN ISO-TP socket constants (CPython PR: Expose ISO-TP Contants for Linux >= 5.10 cpython#86819; source: https://github.com/python/cpython/blob/main/Modules/socketmodule.c)
- Added SSL TLS 1.3 PSK support, signature algorithm APIs, and group/ciphersuite APIs (CPython PRs: gh-133623: Add ssl.HAS_PSK_TLS13 to detect external TLS 1.3 PSK support cpython#133624, Add support in SSL module for getting/setting groups used for key agreement cpython#136306, Add support in SSL module for getting/setting TLS 1.3 cipher suites cpython#137197, Add support in SSL module for getting and setting TLS signature algorithms cpython#138252; source: https://github.com/python/cpython/blob/main/Lib/ssl.py)
- Added
hashlib.scrypt to hashlib.__all__ for Python 3.15 (CPython source: https://github.com/python/cpython/blob/e81025e6d2e01e38c5a5b656af5739ac9df5ff55/Lib/hashlib.py)
- Added
mmap.mmap(trackfd=...) on Windows, mmap.mmap.flush(flags=...), mmap.mmap.set_name(), and 3.15 optional None bounds for find(), rfind(), and madvise(); removed mmap.mmap.resize() on Darwin (source: https://github.com/python/cpython/blob/main/Modules/mmapmodule.c)
- Added
resource constants RLIMIT_NTHR, RLIMIT_UMTXP, RLIMIT_THREADS, RLIM_SAVED_CUR, and RLIM_SAVED_MAX (CPython PR: Add more RLIMIT_* constants cpython#137512; source: https://github.com/python/cpython/blob/main/Modules/resource.c)
- Removed
platform.java_ver for 3.15 (source: https://github.com/python/cpython/blob/main/Lib/platform.py)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
JelleZijlstra
changed the title
Add Python 3.15 socket and SSL updates
Add Python 3.15 socket SSL and platform updates
May 8, 2026
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
|
|
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":
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
|
|
_socket.CAN_ISOTP_LL_OPTS
|
|
|
_socket.CAN_ISOTP_OPTS
|
|
|
_socket.CAN_ISOTP_RECV_FC
|
|
|
(_socket.CAN_ISOTP_LL_OPTS)?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do these definitely need the ()? magic trick?
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really, I cleaned up a bunch more socket constants that should have been added.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
… codex/python315-socket-ssl
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
|
if sys.version_info >= (3, 13):
|
|
|
if sys.version_info >= (3, 15):
|
|
|
pass
|
|
|
elif sys.version_info >= (3, 13):
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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?
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll change it so it's unconditionally @deprecated.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
srittau
srittau approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|