Ken Jin
182aea2f57
gh-146018: Disable over-aggressive optimization for _GUARD_CODE_VERSION (GH-145923)
2026-03-16 13:52:56 +00:00
Sergey Miryanov
fd50b41aa9
GH-145247: Use _PyTuple_FromPair in exceptions.c (GH-145910)
2026-03-16 13:50:26 +00:00
Stan Ulbrych
57e88c1cf9
gh-145599, CVE 2026-3644: Reject control characters in http.cookies.Morsel.update() ( #145600 )
...
Reject control characters in `http.cookies.Morsel.update()` and `http.cookies.BaseCookie.js_output`.
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <victor.stinner@gmail.com>
2026-03-16 14:43:43 +01:00
Victor Stinner
77632f085d
gh-141510: Avoid critical section on frozendict copy ( #145920 )
2026-03-16 14:19:00 +01:00
Ramin Farajpour Cami
e6b9a14069
gh-144984: Fix crash in Expat's ExternalEntityParserCreate error paths ( #144992 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2026-03-16 12:30:13 +00:00
Sacul
37121ef77e
gh-145866: Convert CALL_INTRINSIC_1 to leave its inputs on the stack to be cleaned up by _POP_TOP. (GH-145964)
2026-03-16 11:58:12 +00:00
Matt Van Horn
36b5284f04
gh-145649: Fix man page text wrapping for -X option ( #145656 )
...
Replace hardcoded space indentation with proper troff macros
(.TP, .RS/.RE, .IP) for -X sub-options so text wraps correctly
at any terminal width.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 11:55:00 +01:00
Ken Jin
e2e62033aa
gh-139038: Link to Savannah's webpage for JIT results ( #146013 )
2026-03-16 11:10:34 +01:00
Pieter Eendebak
3a24856447
gh-123471: make concurrent iteration over itertools.accumulate thread-safe ( #144486 )
2026-03-16 08:53:37 +00:00
AN Long
6f8867a676
gh-129849: Add tests for Py_tp_bases ( #143208 )
2026-03-16 13:59:55 +05:30
RayXu
70397fd103
Docs: fix a form error and a grammatical error in float.rst ( #140989 )
2026-03-16 13:51:49 +05:30
Gregory P. Smith
ee5318025b
gh-140814: Fix freeze_support() setting start method as side effect (GH-144608)
...
freeze_support() called get_start_method() without allow_none=True,
which locked in the default start method context. This caused a
subsequent set_start_method() call to raise "context has already been
set". Use allow_none=True and accept None as a matching value, since
spawn.freeze_support() independently detects spawned child processes.
Test that freeze_support() does not lock in the default start method,
which would prevent a subsequent set_start_method() call.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2026-03-15 22:50:19 -07:00
Stan Ulbrych
40095d526b
Expand fuzz_pycompile.dict for new syntax
2026-03-15 18:54:20 -05:00
Gregory P. Smith
83edae33a5
gh-145990: sort --help-env sections by environment variable name (GH-145997)
...
* sort --help-env alphabetically by name.
* add a sorting regression test in test_help_env.
2026-03-15 15:22:57 -07:00
Gregory P. Smith
b062f391cf
gh-145990: Sort python --help-xoptions by option name (GH-145991)
...
* Sort --help-xoptions alphabetically by name.
* add a sorting regression test in test_help_xoptions
2026-03-15 22:02:14 +00:00
Shahar Naveh
f7cb789dc5
gh-145998: Remove duplicated "What's New in 3.15" entry ( #145994 )
2026-03-15 22:54:19 +01:00
Stan Ulbrych
eb0e8be3a7
gh-145986: Avoid unbound C recursion in conv_content_model in pyexpat.c (CVE 2026-4224) ( #145987 )
...
Fix C stack overflow (CVE-2026-4224) when an Expat parser
with a registered `ElementDeclHandler` parses inline DTD
containing deeply nested content model.
---------
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2026-03-15 22:46:06 +01:00
Stan Ulbrych
33044b015b
gh-145976: Remove Misc/indent.pro ( #145992 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2026-03-15 22:29:12 +01:00
Gregory P. Smith
4a71946b8f
gh-122575: gh-142349: fix sys.flags tuple size (it unintentionally increased) (GH-145988)
...
the lazy imports PEP initial implementation (3.15 alpha) inadvertently incremented the length of the sys.flags tuple. In a way that did not do anything useful or related to the lazy imports setting (it exposed sys.flags.gil in the tuple). This fixes that to hard code the length to the 3.13 & 3.14 released length of 18 and have our tests and code comments make it clear that we've since stopped making new sys.flags attributes available via sequence index.
2026-03-15 20:30:01 +00:00
Matthieu Darbois
ec5e3a5a07
gh-145968: Fix base64.b64decode altchars translation in specific cases (GH-145969)
...
When altchars overlaps with the standard ones, the translation does not
always yield to the expected outcome.
2026-03-15 19:46:44 +02:00
Stan Ulbrych
757e2ff9d9
gh-145976: Remove Misc/{Porting,vgrindefs} ( #145973 )
...
Cleanup outdated files under Misc/
2026-03-15 10:14:27 -07:00
Lysandros Nikolaou
2f4e4ec2e7
gh-142518: Document thread-safety guarantees of bytearray objects ( #145226 )
2026-03-15 15:57:05 +01:00
Brian Schubert
e167e06f8c
Bump mypy to 1.19.1 ( #145956 )
2026-03-15 12:48:56 +03:00
Peter Bierma
1dfe99ae3b
gh-141004: Document PyDTrace* (GH-141856)
2026-03-14 22:58:35 -04:00
Guido van Rossum
788c329117
gh-123720: When closing an asyncio server, stop the handlers ( #124689 )
2026-03-14 11:28:49 -07:00
Stan Ulbrych
31c41a61f1
Fix fuzz_builtin_int fuzzer reproducibility ( #145890 )
2026-03-14 11:11:29 -07:00
dependabot[bot]
0575ce936d
build(deps): bump the actions group with 4 updates ( #145952 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-14 16:30:26 +00:00
Stan Ulbrych
9a83c02a0f
gh-137650: Group dependabot actions updates ( #145947 )
2026-03-14 18:00:15 +02:00
Sacul
798070d8ca
gh-134584: Eliminate redundant refcounting in JIT for MATCH_CLASS (GH-144821)
2026-03-14 12:00:18 +00:00
Bénédikt Tran
97968564b6
gh-143636: fix a crash when calling `__replace__ on invalid SimpleNamespace` instances ( #143655 )
2026-03-14 09:58:15 +00:00
Connor Gibson
51e8acf8de
Docs: fix missing period in Doc/library/stdtypes.rst ( #145935 )
2026-03-14 10:19:00 +01:00
Konstantin Vlasov
77c06f3da6
gh-145703: Fix asyncio.BaseEventLoop low clock resolution ( #145706 )
2026-03-14 11:07:30 +05:30
Victor Stinner
3c38feb2a2
gh-129813: Document that PyBytesWriter_GetData() cannot fail ( #145900 )
...
Document that PyBytesWriter_GetData() and PyBytesWriter_GetSize()
getter functions cannot fail
2026-03-13 19:44:51 +01:00
Petr Viktorin
747ef70faa
GH-60729: Revert "Add IEEE format wave audio support (GH-145384)" (GH-145928)
...
Revert "GH-60729: Add IEEE format wave audio support (GH-145384)"
This reverts commit 61f2a1a599 for now;
as tests fail on big-endian machines.
2026-03-13 17:51:23 +00:00
Pieter Eendebak
00a25859a9
gh-145376: Fix GC tracking in structseq.__replace__ ( #145820 )
2026-03-13 15:42:19 +00:00
Lysandros Nikolaou
79b91e7c50
gh-142518: Document thread-safety guarantees of set objects ( #145225 )
2026-03-13 14:53:01 +01:00
Michiel W. Beijen
61f2a1a599
GH-60729: Add IEEE format wave audio support (GH-145384)
...
Co-authored-by: Lionel Koenig <lionelk@google.com>
2026-03-13 14:10:48 +01:00
Jason Yalim, PhD
f884dc6f70
gh-140715: Add %t and %n format codes support to strptime() (GH-144896)
...
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2026-03-13 14:00:39 +01:00
Furkan Onder
9162238511
gh-99631: Add shelve custom serialization to What's New in 3.15 ( #145253 )
2026-03-13 14:38:06 +02:00
VanshAgarwal24036
59d97683c1
gh-145792: Fix incorrect alloca allocation size in traceback.c ( #145814 )
2026-03-13 13:15:26 +01:00
devdanzin
0b6a2346e5
gh-145887: Use write() instead of stream.write() in PrettyPrinter._pprint_frozendict ( #145894 )
2026-03-13 12:57:35 +01:00
Serhiy Storchaka
962fb872eb
gh-145850: Change some implementation details in struct.Struct (GH-145851)
...
* calling it with non-ASCII string format will now raise a ValueError
instead of UnicodeEncodeError
* calling it with non-ASCII bytes format will now raise a ValueError
instead of struct.error
* getting the format attribute of uninitialized object will now raise
an AttributeError instead of RuntimeError.
2026-03-13 13:05:41 +02:00
Stan Ulbrych
e1c224624a
gh-145783: Propagate errors raised in NEW_TYPE_COMMENT ( #145784 )
2026-03-13 11:05:20 +00:00
Maurizio Sambati
6d1e9ceed3
Docs: except with multiple exceptions parentheses not required ( #145848 )
...
As of PEP 758 the except statement doesn't require parentheses anymore for exception tuples.
See: https://peps.python.org/pep-0758/
2026-03-13 05:40:20 -04:00
Stan Ulbrych
0adc7289c3
Revert "gh-143050: Remove redundant decref in _PyLong_Negate (gh-143051)" ( #145891 )
...
OSS Fuzzer caught an assertion failure.
This reverts commit 5197ecb5e4 .
2026-03-12 21:53:29 -04:00
Victor Stinner
08a018ebe0
gh-145801: Use gcc -fprofile-update=atomic for PGO builds ( #145802 )
...
When Python build is optimized with GCC using PGO, use
-fprofile-update=atomic option to use atomic operations when updating
profile information. This option reduces the risk of gcov Data Files
(.gcda) corruption which can cause random GCC crashes.
2026-03-12 23:48:51 +01:00
Sergey Miryanov
f105265538
GH-132042: Fix calculation of slotdef index in update_one_slot() ( #145880 )
2026-03-12 23:16:53 +01:00
Sam Gross
cd52172831
gh-145685: Improve scaling of type attribute lookups (gh-145774)
...
Avoid locking in the PyType_Lookup cache-miss path if the type's
tp_version_tag is already valid.
2026-03-12 13:30:36 -04:00
Charlie Lin
7a65900764
gh-145717: Add a few Microsoft-specific MIME types, and synchronize between mimetypes module and tests ( #145718 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2026-03-12 18:56:07 +02:00
Tan Long
e13f6dccd7
gh-140131: Fix REPL cursor position on Windows when module completion suggestion line hits console width (GH-140333)
2026-03-12 16:59:43 +01:00