Commit graph

128662 commits

Author SHA1 Message Date
Victor Stinner
3d3f126e86
gh-139353: Rename formatter_unicode.c to unicode_formatter.c (#139723)
* Move Python/formatter_unicode.c to Objects/unicode_formatter.c.
* Move Objects/stringlib/localeutil.h content into
  unicode_formatter.c. Remove localeutil.h.
* Move _PyUnicode_InsertThousandsGrouping() to unicode_formatter.c
  and mark the function as static.
* Rename unicode_fill() to _PyUnicode_Fill() and export it in
  pycore_unicodeobject.h.
* Move MAX_UNICODE to pycore_unicodeobject.h as _Py_MAX_UNICODE.
2025-10-08 14:56:00 +02:00
Rogdham
5cea843594
gh-137589: Zipfile tests: close file objects (GH-138080)
Zipfile tests: close file objects
2025-10-08 14:29:37 +02:00
Victor Stinner
c4e7d245d6
gh-138342: Move _PyObject_VisitType() to the internal C API (#139734) 2025-10-08 12:10:58 +02:00
Savannah Ostrowski
a15aeec29e
GH-139590: Run ruff format on pre-commit for Tools/wasm (#139591)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-10-08 02:25:06 +00:00
Zachary Ware
c53c55b6ed
Remove long-obsolete PCbuild/field3.py script (GH-139739)
As far as I can tell, it has not actually been used since 2003.
2025-10-08 00:29:43 +00:00
Victor Stinner
85ec35d2ab
gh-79315: Add Include/cpython/structseq.h header (#139730) 2025-10-08 01:19:50 +02:00
Victor Stinner
5a77f02d72
gh-79315: Remove Include/pylock.h and Include/monitoring.h (#139731)
Keep Include/cpython/pylock.h and Include/cpython/monitoring.h.
2025-10-08 00:49:24 +02:00
Victor Stinner
1cf22600f1
gh-79315: Add Include/cpython/sliceobject.h header (#139729) 2025-10-08 00:48:18 +02:00
Victor Stinner
f962e1eacf
gh-79315: Add Include/cpython/marshal.h header (#139725) 2025-10-07 23:49:08 +02:00
Cornelius Roemer
25edfa7cf1
Doc: Improve clarity for subinterpreters in What's New in 3.14 (#139221)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-10-07 18:53:27 +00:00
Stan Ulbrych
d396a32b3d
gh-139698: Fix typo in What's New 3.14 (#139699) 2025-10-07 23:09:45 +05:30
Serhiy Storchaka
162997bb70
gh-139700: Check consistency of the zip64 end of central directory record (GH-139702)
Support records with "zip64 extensible data" if there are no bytes
prepended to the ZIP file.
2025-10-07 20:15:26 +03:00
Tomasz Pytel
539461d9ec
gh-139516: Fix lambda colon start format spec in f-string in tokenizer (#139657) 2025-10-07 17:28:15 +01:00
danigm
96c59a6e42
gh-138497: Support LLVM_VERSION configuration via env (#138498)
Co-authored-by: Savannah Ostrowski <savannah@python.org>
2025-10-07 07:54:31 -07:00
Mark Shannon
7094f09f54
GH-139291: Fix C stack limits by factoring out finding hardware stack limits (GH-139294) 2025-10-07 15:04:37 +02:00
Adam Turner
0e2cdd313b
gh-139436: Remove `dist-pdf` from the docs archives rebuild target (#139437) 2025-10-07 13:29:18 +01:00
Adam Turner
134ff810cf
GH-123299: Announce final release in What's New in Python 3.14 (#139631)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-10-07 08:49:59 +00:00
Ned Deily
6d804e4efb
gh-124111: Update macOS installer to use Tcl/Tk 8.6.17. (#139682) 2025-10-07 00:53:05 -04:00
Zachary Ware
23410f0a9e
gh-139573: Update macOS installer to use OpenSSL 3.0.18 (#139575) 2025-10-06 22:17:09 -04:00
Alyssa Coghlan
331158065b
Add warnings filter suggestions to PEP 765 entry in What's New (#139658)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-10-06 20:41:08 +01:00
Furkan Onder
171f787a29
gh-138854: Skip test_script_shadowing_stdlib_cwd_failure on AIX (GH-138855) 2025-10-06 17:42:26 +00:00
sobolevn
7c70cc5c23
gh-133210: Fix test_inspect without docstrings (#139651) 2025-10-06 19:48:50 +03:00
Sebastian Pipping
55a44ccf5e
gh-139400: Move NEWS item from section "Core and Builtins" to section "Security" (GH-139606) (#139664) 2025-10-06 16:55:58 +02:00
Mikhail Efimov
708de26e31
gh-133210: Fix test_pydoc without docstrings (#139654) 2025-10-06 16:51:10 +02:00
Cycloctane
69cfad0b3e
gh-116488: Mention dict.get in the data structures tutorial (GH-139643) 2025-10-06 09:04:59 -04:00
Cycloctane
b73aaffb3d
gh-133951: Fix purelib packages not found in test_peg_generator TestCParser (GH-139607)
also includes purelib in TestCParser import context
2025-10-06 14:40:48 +02:00
yihong
36a6c2cdfa
gh-139646: fix typo in pickletools error message (#139647)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2025-10-06 10:52:45 +00:00
Furkan Onder
6f3dae0dc5
gh-139624: Skip problematic locales on AIX in test_date_locale2 (GH-139625) 2025-10-06 11:38:01 +02:00
Malcolm Smith
a9b0506d8d
gh-137242: Allow Android testbed to take all Python command-line options (#138805)
Modifies the Android test runner to ensure that all valid Python command line
options are preserved when running the test suite.
2025-10-06 13:19:48 +08:00
Adam Turner
3195da0b1a
gh-105812: Use the `:deco:` role in place of manual decorator markup (#139619) 2025-10-05 21:15:36 +01:00
Adam Turner
46de475af7
GH-123299: Copyedit 3.14 What's New: Trivia (#139618) 2025-10-05 22:45:58 +03:00
Skip Montanaro
d1ca001d35
gh-127330: Comment correction in _ssl.c (#139603) 2025-10-05 19:15:46 +01:00
George Ogden
dadbb2662a
Replace ambiguous word "pound" by "hash" in difflib docs (#139601) 2025-10-05 17:10:24 +00:00
Adam Turner
5389234fca
GH-123299: Copyedit 3.14 What's New: New Features (#139543)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-10-05 20:05:29 +03:00
Bénédikt Tran
1fe89d324e
gh-70765: fix an HTTP/0.9 flaky test post GH-139514 (#139610)
Fix a flaky test introduced in 13dc2fde8c.

After a single HTTP/0.9 request, both client and server are expected to
close the connection on their side. In particular, if a client sends two
requests with the same connection, only the first one should be handled.

In the tests, it might happen that checking for the second request to be
ignored did not take into account that the server may have already closed
the connection. This flaky behavior was first observed on macOS CI workers
but could not be reproduced locally on a Linux machine.
2025-10-05 16:51:16 +00:00
Sebastian Pipping
6edb2ddb5f
gh-139400: Make sure that parent parsers outlive their subparsers in pyexpat (#139403)
* Modules/pyexpat.c: Disallow collection of in-use parent parsers.

Within libexpat, a parser created via `XML_ExternalEntityParserCreate`
is relying on its parent parser throughout its entire lifetime.
Prior to this fix, is was possible for the parent parser to be
garbage-collected too early.
2025-10-05 17:37:42 +02:00
Bénédikt Tran
13dc2fde8c
gh-70765: avoid waiting for HTTP headers when parsing HTTP/0.9 requests (#139514) 2025-10-05 12:03:25 +00:00
Jost Migenda
29616f3d2c
gh-118767: Remove `bool(NotImplemented)` from pending-removal document (#139526) 2025-10-05 14:03:54 +03:00
Victor Stinner
efd223da0c
gh-64327: Remove skipped pydoc tests (#139512)
Tests skipped since 2014:
since commit a46ef70bdf.
2025-10-05 12:49:03 +02:00
Bénédikt Tran
41712c4e09
gh-139310: skip test_aead_aes_gcm for Linux kernel between 6.16.0 and 6.17.x (#139552)
Currently, Fedora 42 uses a custom Linux Kernel 6.16.9 that backported an upstream change
from 6.17-rc7 [1,3] but not its subsequent fix [2]. Until the issue is resolved upstream,
we skip the failing test `test_socket.test_aead_aes_gcm` for kernel versions between 6.16
and 6.17.x.

[1] 1b34cbbf4f
[2] d0ca0df179.
[3] 45bcf60fe4
2025-10-05 10:27:16 +02:00
Russell Keith-Magee
20758f9bb1
gh-139573: Update OpenSSL version used in iOS builds (#139582)
Update OpenSSL version used in iOS builds.
2025-10-05 08:03:41 +03:00
Savannah Ostrowski
9964320d15
GH-137218: Fix unnecessary recompile of Programs/_freeze_module (#139241) 2025-10-04 20:05:37 -07:00
Zachary Ware
063cef9999
gh-139573: Update Windows builds to use OpenSSL 3.0.18 (GH-139574) 2025-10-04 19:56:59 -05:00
Zachary Ware
98e748b3a0
gh-139573: Update OpenSSL in CI (GH-139577) 2025-10-04 19:43:17 -05:00
Malcolm Smith
0f0fc5a163
gh-139573: Update Android to OpenSSL 3.0.18 (#139562)
Update Android to OpenSSL 3.0.18.
2025-10-05 08:15:29 +08:00
Dave Peck
880c9526f9
gh-138558: Improve description of `Interpolation.expression` (#139187)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-10-04 22:06:56 +01:00
Kumar Aditya
0b2168275e
gh-138703: clarify data buffer requirement of asyncio.StreamWriter.write (#139564) 2025-10-04 21:44:05 +05:30
rowanbudge
04a2f80a60
gh-101100: Fix some Sphinx reference warnings in `whatsnew/2.6.rst` (#139236)
Co-authored-by: rowanvil <rowan@anvil.works>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2025-10-04 15:59:39 +00:00
Filipe Laíns 🇵🇸
f191db2e0e
Add FFY00 to CODEOWNERS for generate-build-details (#139561)
Signed-off-by: Filipe Laíns <lains@riseup.net>
2025-10-04 15:25:07 +01:00
Sebastian Pipping
fc48a3c9ca
gh-90949: Fix an "unused function" compiler warning introduced in GH-139234 (#139558)
Fix a compiler warning `-Wunused-function` after f04bea44c3.

The `set_invalid_arg` function in `Modules/pyexpat.c` may be unused if the underlying Expat
version is less than 2.4.0.
2025-10-04 14:19:06 +00:00