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
Victor Stinner
d4cc553294
gh-141510: Update PyDict C API doc for frozendict ( #145533 )
...
Mention frozendict support.
2026-03-12 15:04:36 +01:00
bkap123
17eb0354ff
gh-145446: Add critical section in functools module for PyDict_Next (GH-145487)
2026-03-12 14:46:37 +01:00
Thomas Kowalski
7836ecc5da
gh-145681: do not deallocate list buffer in _PyList_AsTupleAndClear (GH-145680)
...
Setting the size to 0 turns the list contents into overallocated memory that the deallocator will free.
Ownership is transferred to the new tuple so no refcount adjustment is needed.
2026-03-12 14:27:07 +01:00
Mark Shannon
453562a467
GH-145692: Convert DEOPT_IFs to EXIT_IFs (GH-145751)
...
* Convert DEOPT_IFs to EXIT_IFs for guards. Keep DEOPT_IF for intentional drops to the interpreter.
* Modify BINARY_OP_SUBSCR_LIST_INT and STORE_SUBSCR_LIST_INT to handle negative indices, to keep EXIT_IFs and DEOPT_IFs in different uops
2026-03-12 10:57:59 +00:00
Shamil
86a0756234
gh-140594: Fix an out of bounds read when feeding NUL byte to PyOS_StdioReadline() ( #140910 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2026-03-12 10:46:36 +00:00
Serhiy Storchaka
72456309e9
gh-143715: Deprecate incomplete initialization of struct.Struct() (GH-145580)
...
* Struct.__new__() will require a mandatory argument (format)
* Calls of __init__() method with a different format argument on initialized
Struct are deprecated
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2026-03-12 09:44:11 +02:00
Lysandros Nikolaou
0dce4c6eab
gh-145254: Add thread safety annotation in docs ( #145255 )
2026-03-12 12:18:43 +05:30
Sergey Miryanov
d19de375a2
GH-145247: Use _PyTuple_FromPair in Parser and Python ( #145842 )
...
Use _PyTuple_FromPair in Parser and Python
2026-03-11 21:08:18 +00:00
Hai Zhu
f062014d38
gh-144540: Add _MAKE_HEAP_SAFE uop to eliminate unnecessary refcount operations in RETURN_VALUE and YIELD_VALUE (GH-144414)
2026-03-11 20:24:19 +00:00
Serhiy Storchaka
77d6d5d8fc
gh-145736: Fix Tkinter tests for Tk 8.7, 9.0 and 9.1 (GH-145738)
2026-03-11 21:01:03 +02:00
Victor Stinner
713be70175
gh-141510: Raise TypeError in PyDict_SetItem() on frozendict ( #145564 )
...
If the following functions get an unexpected frozendict,
raise TypeError instead of SystemError:
* PyDict_DelItem()
* PyDict_DelItemString()
* PyDict_Merge()
* PyDict_MergeFromSeq2()
* PyDict_Pop()
* PyDict_PopString()
* PyDict_SetDefault()
* PyDict_SetDefaultRef()
* PyDict_SetItem()
* PyDict_SetItemString()
* _PyDict_SetItem_KnownHash()
* PyDict_Update()
Co-authored-by: mohsinm-dev <mohsin.mdev@gmail.com>
2026-03-11 17:05:09 +01:00
T. Wouters
706fd4ec08
gh-142183: Cache one datachunk per tstate to prevent alloc/dealloc thrashing ( #145789 )
...
Cache one datachunk per tstate to prevent alloc/dealloc thrashing when repeatedly hitting the same call depth at exactly the wrong boundary.
---------
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2026-03-11 15:46:16 +01:00
Bénédikt Tran
4722202a1a
gh-139933: correctly suggest attributes for classes with a custom __dir__ (GH-139950)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2026-03-11 15:30:09 +01:00