Skip to content

Add Python 3.15 socket SSL and platform updates#15734

Open
JelleZijlstra wants to merge 11 commits intopython:mainfrom
JelleZijlstra:codex/python315-socket-ssl
Open

Add Python 3.15 socket SSL and platform updates#15734
JelleZijlstra wants to merge 11 commits intopython:mainfrom
JelleZijlstra:codex/python315-socket-ssl

Conversation

@JelleZijlstra
Copy link
Copy Markdown
Member

@JelleZijlstra JelleZijlstra commented May 8, 2026

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:

@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
@github-actions

This comment has been minimized.

Comment thread stdlib/_ssl.pyi Outdated
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":
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird

Copy link
Copy Markdown
Member Author

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.

@JelleZijlstra JelleZijlstra marked this pull request as ready for review May 9, 2026 00:32
@github-actions

This comment has been minimized.

_socket.CAN_ISOTP_LL_OPTS
_socket.CAN_ISOTP_OPTS
_socket.CAN_ISOTP_RECV_FC
(_socket.CAN_ISOTP_LL_OPTS)?
Copy link
Copy Markdown
Collaborator

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?

Copy link
Copy Markdown
Member Author

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.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2026

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

Comment thread stdlib/platform.pyi
if sys.version_info >= (3, 13):
if sys.version_info >= (3, 15):
pass
elif sys.version_info >= (3, 13):
Copy link
Copy Markdown
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants