Add more Python 3.15 stdlib updates#15747
Open
JelleZijlstra wants to merge 5 commits intopython:mainfrom
Open
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
srittau
reviewed
May 10, 2026
Contributor
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
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.
Split out from #15714.
Relevant Python 3.15 changes:
collections.Countersymmetric difference operators (CPython PR: Add symmetric_difference to Counter cpython#138682; source: https://github.com/python/cpython/blob/main/Lib/collections/__init__.py)_interpqueues.create(maxsize, unboundop=-1, fallback=-1)and_interpqueues.put(qid, obj, unboundop=-1, fallback=-1)signatures (CPython source: https://github.com/python/cpython/blob/e81025e6d2e01e38c5a5b656af5739ac9df5ff55/Modules/_interpqueuesmodule.c)sys.abi_infoand lazy import configuration APIs (CPython PRs: Implement PEP 810 – Explicit lazy imports cpython#142349, gh-133143: Make information about the interpreter ABI more accessible cpython#137476; source: https://github.com/python/cpython/blob/main/Python/sysmodule.c)timeit.Timer.autorange(target_time=...)(CPython PR: timeit: Additional changes for autorange cpython#80642; source: https://github.com/python/cpython/blob/main/Lib/timeit.py)threading.serialize_iterator,threading.synchronized_iterator, andthreading.concurrent_tee(CPython source: https://github.com/python/cpython/blob/e81025e6d2e01e38c5a5b656af5739ac9df5ff55/Lib/threading.py)types.FrameLocalsProxyType,types.LazyImportType, 3.15FrameType.f_locals, and generator/coroutine state properties (gi_state,cr_state,ag_state); removedCodeType.co_lnotabfor 3.15 (CPython PR: Remove deprecatedco_lnotabfromCodeTypecpython#134690; source: https://github.com/python/cpython/blob/main/Objects/frameobject.c, https://github.com/python/cpython/blob/e81025e6d2e01e38c5a5b656af5739ac9df5ff55/Objects/genobject.c)xml.is_valid_nameandxml.is_valid_text(CPython PR: Add utility functions to test for legal XML characters and names cpython#139489; source: https://github.com/python/cpython/blob/main/Lib/xml/__init__.py)