GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add Python 3.15 socket SSL and platform updates by JelleZijlstra · Pull Request #15734 · python/typeshed

Conversation

@JelleZijlstra

@JelleZijlstra JelleZijlstra commented May 8, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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.

All reactions
JelleZijlstra added 2 commits May 8, 2026 13:37
@JelleZijlstra
Add Python 3.15 socket and SSL updates
ffe0bbc
@JelleZijlstra
Add more Python 3.15 platform updates
86a678d
@JelleZijlstra JelleZijlstra changed the title Add Python 3.15 socket and SSL updates Add Python 3.15 socket SSL and platform updates May 8, 2026
JelleZijlstra added 2 commits May 8, 2026 13:48
@JelleZijlstra
Guard Darwin mmap resize change
76a3d35
@JelleZijlstra
Guard hashlib all update
2cfd182
@github-actions

This comment has been minimized.

Sign in to view
JelleZijlstra
JelleZijlstra commented May 8, 2026
View reviewed changes
Comment thread stdlib/_ssl.pyi Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread stdlib/mmap.pyi
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":

@JelleZijlstra JelleZijlstra May 8, 2026

Copy link
Copy Markdown
Member Author

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.

weird

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@JelleZijlstra JelleZijlstra May 9, 2026

Copy link
Copy Markdown
Member Author

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.

All reactions
JelleZijlstra added 2 commits May 8, 2026 17:24
@JelleZijlstra
Merge branch 'main' into codex/python315-socket-ssl
4ea6af6
@JelleZijlstra
Update stdlib/_ssl.pyi
0d077ad
@JelleZijlstra
JelleZijlstra marked this pull request as ready for review May 9, 2026 00:32
@github-actions

This comment has been minimized.

Sign in to view
hauntsaninja
hauntsaninja reviewed May 9, 2026
View reviewed changes
Comment thread stdlib/@tests/stubtest_allowlists/linux-py315.txt Outdated
_socket.CAN_ISOTP_LL_OPTS
_socket.CAN_ISOTP_OPTS
_socket.CAN_ISOTP_RECV_FC
(_socket.CAN_ISOTP_LL_OPTS)?

@hauntsaninja hauntsaninja May 9, 2026

Copy link
Copy Markdown
Collaborator

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.

All reactions

@JelleZijlstra JelleZijlstra May 9, 2026

Copy link
Copy Markdown
Member Author

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.

All reactions
JelleZijlstra added 2 commits May 8, 2026 20:38
@JelleZijlstra
Add Python 3.15 CAN ISO-TP constants
199c014
@JelleZijlstra
Merge remote-tracking branch 'origin/codex/python315-socket-ssl' into…
94dd724
… codex/python315-socket-ssl
@github-actions

This comment has been minimized.

Sign in to view
JelleZijlstra added 2 commits May 8, 2026 20:48
@JelleZijlstra
Clean up Python 3.15 socket allowlists
a853d10
@JelleZijlstra
Restore Darwin SO_BINDTODEVICE guard
a58beaf
@github-actions

This comment has been minimized.

Sign in to view
@JelleZijlstra
reorganize a bit
2e64dbf
@github-actions

This comment has been minimized.

Sign in to view
srittau
srittau requested changes May 9, 2026
View reviewed changes
Comment thread stdlib/platform.pyi Outdated
if sys.version_info >= (3, 13):
if sys.version_info >= (3, 15):
pass
elif sys.version_info >= (3, 13):

@srittau srittau May 9, 2026

Copy link
Copy Markdown
Collaborator

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.

All reactions

@JelleZijlstra JelleZijlstra May 9, 2026

Copy link
Copy Markdown
Member Author

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.

All reactions
@JelleZijlstra
deprecated forever
15cc880
@github-actions

github-actions Bot commented May 9, 2026

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

srittau
srittau approved these changes May 9, 2026
View reviewed changes
@JelleZijlstra
JelleZijlstra merged commit 24f7cf4 into python:main May 9, 2026
56 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@JelleZijlstra
JelleZijlstra deleted the codex/python315-socket-ssl branch May 9, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@hauntsaninja hauntsaninja hauntsaninja left review comments
@srittau srittau srittau approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

3 participants

@JelleZijlstra @srittau @hauntsaninja
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.