]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 weeks agogh-79315: Add Include/cpython/sliceobject.h header (#139729)
Victor Stinner [Tue, 7 Oct 2025 22:48:18 +0000 (00:48 +0200)] 
gh-79315: Add Include/cpython/sliceobject.h header (#139729)

4 weeks agogh-79315: Add Include/cpython/marshal.h header (#139725)
Victor Stinner [Tue, 7 Oct 2025 21:49:08 +0000 (23:49 +0200)] 
gh-79315: Add Include/cpython/marshal.h header (#139725)

4 weeks agoDoc: Improve clarity for subinterpreters in What's New in 3.14 (#139221)
Cornelius Roemer [Tue, 7 Oct 2025 18:53:27 +0000 (20:53 +0200)] 
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>
4 weeks agogh-139698: Fix typo in What's New 3.14 (#139699)
Stan Ulbrych [Tue, 7 Oct 2025 17:39:45 +0000 (18:39 +0100)] 
gh-139698: Fix typo in What's New 3.14 (#139699)

4 weeks agogh-139700: Check consistency of the zip64 end of central directory record (GH-139702)
Serhiy Storchaka [Tue, 7 Oct 2025 17:15:26 +0000 (20:15 +0300)] 
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.

4 weeks agogh-139516: Fix lambda colon start format spec in f-string in tokenizer (#139657)
Tomasz Pytel [Tue, 7 Oct 2025 16:28:15 +0000 (12:28 -0400)] 
gh-139516: Fix lambda colon start format spec in f-string in tokenizer (#139657)

4 weeks agogh-138497: Support LLVM_VERSION configuration via env (#138498)
danigm [Tue, 7 Oct 2025 14:54:31 +0000 (16:54 +0200)] 
gh-138497: Support LLVM_VERSION configuration via env (#138498)

Co-authored-by: Savannah Ostrowski <savannah@python.org>
4 weeks agoGH-139291: Fix C stack limits by factoring out finding hardware stack limits (GH...
Mark Shannon [Tue, 7 Oct 2025 13:04:37 +0000 (14:04 +0100)] 
GH-139291: Fix C stack limits by factoring out finding hardware stack limits (GH-139294)

4 weeks agogh-139436: Remove ``dist-pdf`` from the docs archives rebuild target (#139437)
Adam Turner [Tue, 7 Oct 2025 12:29:18 +0000 (13:29 +0100)] 
gh-139436: Remove ``dist-pdf`` from the docs archives rebuild target (#139437)

4 weeks agoGH-123299: Announce final release in What's New in Python 3.14 (#139631)
Adam Turner [Tue, 7 Oct 2025 08:49:59 +0000 (09:49 +0100)] 
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>
4 weeks agogh-124111: Update macOS installer to use Tcl/Tk 8.6.17. (#139682)
Ned Deily [Tue, 7 Oct 2025 04:53:05 +0000 (05:53 +0100)] 
gh-124111: Update macOS installer to use Tcl/Tk 8.6.17. (#139682)

4 weeks agogh-139573: Update macOS installer to use OpenSSL 3.0.18 (#139575)
Zachary Ware [Tue, 7 Oct 2025 02:17:09 +0000 (21:17 -0500)] 
gh-139573: Update macOS installer to use OpenSSL 3.0.18 (#139575)

4 weeks agoAdd warnings filter suggestions to PEP 765 entry in What's New (#139658)
Alyssa Coghlan [Mon, 6 Oct 2025 19:41:08 +0000 (05:41 +1000)] 
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>
4 weeks agogh-138854: Skip test_script_shadowing_stdlib_cwd_failure on AIX (GH-138855)
Furkan Onder [Mon, 6 Oct 2025 17:42:26 +0000 (17:42 +0000)] 
gh-138854: Skip test_script_shadowing_stdlib_cwd_failure on AIX (GH-138855)

4 weeks agogh-133210: Fix `test_inspect` without docstrings (#139651)
sobolevn [Mon, 6 Oct 2025 16:48:50 +0000 (19:48 +0300)] 
gh-133210: Fix `test_inspect` without docstrings (#139651)

4 weeks agogh-139400: Move NEWS item from section "Core and Builtins" to section "Security"...
Sebastian Pipping [Mon, 6 Oct 2025 14:55:58 +0000 (16:55 +0200)] 
gh-139400: Move NEWS item from section "Core and Builtins" to section "Security" (GH-139606) (#139664)

4 weeks agogh-133210: Fix `test_pydoc` without docstrings (#139654)
Mikhail Efimov [Mon, 6 Oct 2025 14:51:10 +0000 (17:51 +0300)] 
gh-133210: Fix `test_pydoc` without docstrings (#139654)

4 weeks agogh-116488: Mention `dict.get` in the data structures tutorial (GH-139643)
Cycloctane [Mon, 6 Oct 2025 13:04:59 +0000 (21:04 +0800)] 
gh-116488: Mention `dict.get` in the data structures tutorial (GH-139643)

4 weeks agogh-133951: Fix purelib packages not found in test_peg_generator TestCParser (GH-139607)
Cycloctane [Mon, 6 Oct 2025 12:40:48 +0000 (20:40 +0800)] 
gh-133951: Fix purelib packages not found in test_peg_generator TestCParser (GH-139607)

also includes purelib in TestCParser import context

4 weeks agogh-139646: fix typo in `pickletools` error message (#139647)
yihong [Mon, 6 Oct 2025 10:52:45 +0000 (18:52 +0800)] 
gh-139646: fix typo in `pickletools` error message (#139647)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
4 weeks agogh-139624: Skip problematic locales on AIX in test_date_locale2 (GH-139625)
Furkan Onder [Mon, 6 Oct 2025 09:38:01 +0000 (09:38 +0000)] 
gh-139624: Skip problematic locales on AIX in test_date_locale2 (GH-139625)

4 weeks agogh-137242: Allow Android testbed to take all Python command-line options (#138805)
Malcolm Smith [Mon, 6 Oct 2025 05:19:48 +0000 (06:19 +0100)] 
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.

4 weeks agogh-105812: Use the ``:deco:`` role in place of manual decorator markup (#139619)
Adam Turner [Sun, 5 Oct 2025 20:15:36 +0000 (21:15 +0100)] 
gh-105812: Use the ``:deco:`` role in place of manual decorator markup (#139619)

4 weeks agoGH-123299: Copyedit 3.14 What's New: Trivia (#139618)
Adam Turner [Sun, 5 Oct 2025 19:45:58 +0000 (20:45 +0100)] 
GH-123299: Copyedit 3.14 What's New: Trivia (#139618)

4 weeks agogh-127330: Comment correction in _ssl.c (#139603)
Skip Montanaro [Sun, 5 Oct 2025 18:15:46 +0000 (13:15 -0500)] 
gh-127330: Comment correction in _ssl.c (#139603)

4 weeks agoReplace ambiguous word "pound" by "hash" in `difflib` docs (#139601)
George Ogden [Sun, 5 Oct 2025 17:10:24 +0000 (19:10 +0200)] 
Replace ambiguous word "pound" by "hash" in `difflib` docs (#139601)

4 weeks agoGH-123299: Copyedit 3.14 What's New: New Features (#139543)
Adam Turner [Sun, 5 Oct 2025 17:05:29 +0000 (18:05 +0100)] 
GH-123299: Copyedit 3.14 What's New: New Features (#139543)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 weeks agogh-70765: fix an HTTP/0.9 flaky test post GH-139514 (#139610)
Bénédikt Tran [Sun, 5 Oct 2025 16:51:16 +0000 (18:51 +0200)] 
gh-70765: fix an HTTP/0.9 flaky test post GH-139514 (#139610)

Fix a flaky test introduced in 13dc2fde8cec1e8aad04c7635b3da4ff3e3dcb00.

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.

4 weeks agogh-139400: Make sure that parent parsers outlive their subparsers in `pyexpat` (...
Sebastian Pipping [Sun, 5 Oct 2025 15:37:42 +0000 (17:37 +0200)] 
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.

4 weeks agogh-70765: avoid waiting for HTTP headers when parsing HTTP/0.9 requests (#139514)
Bénédikt Tran [Sun, 5 Oct 2025 12:03:25 +0000 (14:03 +0200)] 
gh-70765: avoid waiting for HTTP headers when parsing HTTP/0.9 requests (#139514)

4 weeks agogh-118767: Remove ``bool(NotImplemented)`` from pending-removal document (#139526)
Jost Migenda [Sun, 5 Oct 2025 11:03:54 +0000 (12:03 +0100)] 
gh-118767: Remove ``bool(NotImplemented)`` from pending-removal document (#139526)

4 weeks agogh-64327: Remove skipped pydoc tests (#139512)
Victor Stinner [Sun, 5 Oct 2025 10:49:03 +0000 (12:49 +0200)] 
gh-64327: Remove skipped pydoc tests (#139512)

Tests skipped since 2014:
since commit a46ef70bdfa0273a9d2cc40014c0ab74967fe654.

4 weeks agogh-139310: skip `test_aead_aes_gcm` for Linux kernel between 6.16.0 and 6.17.x (...
Bénédikt Tran [Sun, 5 Oct 2025 08:27:16 +0000 (10:27 +0200)] 
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] https://github.com/torvalds/linux/commit/1b34cbbf4f011a121ef7b2d7d6e6920a036d5285
[2] https://github.com/torvalds/linux/commit/d0ca0df179c4b21e2a6c4a4fb637aa8fa14575cb.
[3] https://gitlab.com/cki-project/kernel-ark/-/commit/45bcf60fe49b37daab1acee57b27211ad1574042

4 weeks agogh-139573: Update OpenSSL version used in iOS builds (#139582)
Russell Keith-Magee [Sun, 5 Oct 2025 05:03:41 +0000 (13:03 +0800)] 
gh-139573: Update OpenSSL version used in iOS builds (#139582)

Update OpenSSL version used in iOS builds.

4 weeks agoGH-137218: Fix unnecessary recompile of `Programs/_freeze_module` (#139241)
Savannah Ostrowski [Sun, 5 Oct 2025 03:05:37 +0000 (20:05 -0700)] 
GH-137218: Fix unnecessary recompile of `Programs/_freeze_module` (#139241)

4 weeks agogh-139573: Update Windows builds to use OpenSSL 3.0.18 (GH-139574)
Zachary Ware [Sun, 5 Oct 2025 00:56:59 +0000 (19:56 -0500)] 
gh-139573: Update Windows builds to use OpenSSL 3.0.18 (GH-139574)

4 weeks agogh-139573: Update OpenSSL in CI (GH-139577)
Zachary Ware [Sun, 5 Oct 2025 00:43:17 +0000 (19:43 -0500)] 
gh-139573: Update OpenSSL in CI (GH-139577)

4 weeks agogh-139573: Update Android to OpenSSL 3.0.18 (#139562)
Malcolm Smith [Sun, 5 Oct 2025 00:15:29 +0000 (01:15 +0100)] 
gh-139573: Update Android to OpenSSL 3.0.18 (#139562)

Update Android to OpenSSL 3.0.18.

4 weeks agogh-138558: Improve description of ``Interpolation.expression`` (#139187)
Dave Peck [Sat, 4 Oct 2025 21:06:56 +0000 (17:06 -0400)] 
gh-138558: Improve description of ``Interpolation.expression`` (#139187)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
4 weeks agogh-138703: clarify data buffer requirement of `asyncio.StreamWriter.write` (#139564)
Kumar Aditya [Sat, 4 Oct 2025 16:14:05 +0000 (21:44 +0530)] 
gh-138703: clarify data buffer requirement of `asyncio.StreamWriter.write` (#139564)

4 weeks ago gh-101100: Fix some Sphinx reference warnings in ``whatsnew/2.6.rst`` (#139236)
rowanbudge [Sat, 4 Oct 2025 15:59:39 +0000 (16:59 +0100)] 
 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>
4 weeks agoAdd FFY00 to CODEOWNERS for generate-build-details (#139561)
Filipe Laíns 🇵🇸 [Sat, 4 Oct 2025 14:25:07 +0000 (15:25 +0100)] 
Add FFY00 to CODEOWNERS for generate-build-details (#139561)

Signed-off-by: Filipe Laíns <lains@riseup.net>
4 weeks agogh-90949: Fix an "unused function" compiler warning introduced in GH-139234 (#139558)
Sebastian Pipping [Sat, 4 Oct 2025 14:19:06 +0000 (16:19 +0200)] 
gh-90949: Fix an "unused function" compiler warning introduced in GH-139234 (#139558)

Fix a compiler warning `-Wunused-function` after f04bea44c37793561d753dd4ca6e7cd658137553.

The `set_invalid_arg` function in `Modules/pyexpat.c` may be unused if the underlying Expat
version is less than 2.4.0.

4 weeks agogh-136097: Fix sysconfig._parse_makefile() (#136166)
Serhiy Storchaka [Sat, 4 Oct 2025 13:57:12 +0000 (16:57 +0300)] 
gh-136097: Fix sysconfig._parse_makefile() (#136166)

* Fix potential infinite recursion.
* Fix a bug when reference can cross boundaries of substitutions, e.g.
  a=$(
  b=$(a)a)
* Fix potential quadratic complexity.
* Fix KeyError for undefined CFLAGS, LDFLAGS, or CPPFLAGS.
* Fix infinite recursion when keep_unresolved=False.
* Unify behavior with keep_unresolved=False for bogus $ occurred before
  and after variable references.

4 weeks agogh-139308: Skip test_special_chars_csh on NetBSD due to csh variable expansion issue...
Furkan Onder [Sat, 4 Oct 2025 13:56:43 +0000 (13:56 +0000)] 
gh-139308: Skip test_special_chars_csh on NetBSD due to csh variable expansion issue (#139341)

Skip test_special_chars_csh on NetBSD due to csh variable expansion issue

Co-authored-by: Filipe Laíns 🇵🇸 <lains@riseup.net>
4 weeks agogh-133951: Remove lib64->lib symlink in venv creation (#137139)
Cycloctane [Sat, 4 Oct 2025 13:55:17 +0000 (21:55 +0800)] 
gh-133951: Remove lib64->lib symlink in venv creation (#137139)

* Remove lib64->lib symlink in venv directory

* fix test

* remove unused import

* add news

4 weeks agogh-138044: Remove deprecated parameter alias for `importlib.resources.files` (#138059)
Semyon Moroz [Sat, 4 Oct 2025 13:53:43 +0000 (17:53 +0400)] 
gh-138044: Remove deprecated parameter alias for `importlib.resources.files` (#138059)

4 weeks agogh-138489: Add missing `build-details.json` step for building wasm (#139302)
Ho Kim [Sat, 4 Oct 2025 13:26:20 +0000 (22:26 +0900)] 
gh-138489: Add missing `build-details.json` step for building wasm (#139302)

* fix: add missing `build-details.json` step for building wasm

Signed-off-by: Ho Kim <ho.kim@ulagbulag.io>
* gh-138489: Add missing build-details.json step for building wasm

Signed-off-by: Ho Kim <ho.kim@ulagbulag.io>
* Update Makefile.pre.in

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
---------

Signed-off-by: Ho Kim <ho.kim@ulagbulag.io>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
4 weeks agoGH-123299: Copyedit 3.14 What's New: New and Improved Modules (#139530)
Adam Turner [Sat, 4 Oct 2025 12:58:51 +0000 (13:58 +0100)] 
GH-123299: Copyedit 3.14 What's New: New and Improved Modules (#139530)

5 weeks agoReplace workflow with project automations (#136831)
Stan Ulbrych [Sat, 4 Oct 2025 05:09:37 +0000 (06:09 +0100)] 
Replace workflow with project automations (#136831)

Remove unnecessary workflow

5 weeks agogh-133210: Fix `test_types` with `--without-doc-strings` (#139548)
sobolevn [Fri, 3 Oct 2025 21:52:45 +0000 (00:52 +0300)] 
gh-133210: Fix `test_types` with `--without-doc-strings` (#139548)

5 weeks agogh-137638: Use macos-15-intel in GitHub Actions (#139154)
Jacob Coffee [Fri, 3 Oct 2025 19:49:03 +0000 (15:49 -0400)] 
gh-137638: Use macos-15-intel in GitHub Actions (#139154)

Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
5 weeks agogh-139525: Don't specialize functions which have a modified vectorcall (#139524)
Dino Viehland [Fri, 3 Oct 2025 16:58:32 +0000 (09:58 -0700)] 
gh-139525: Don't specialize functions which have a modified vectorcall (#139524)

Don't specialize functions which have a modified vectorcall

5 weeks ago`Python/codecs.c`: Remove unused forward declaration (#139511)
Stan Ulbrych [Fri, 3 Oct 2025 11:33:49 +0000 (12:33 +0100)] 
`Python/codecs.c`: Remove unused forward declaration (#139511)

5 weeks agogh-132042: Remove resolve_slotdups() to speedup class creation (#132156)
Sergey Miryanov [Fri, 3 Oct 2025 09:58:00 +0000 (14:58 +0500)] 
gh-132042: Remove resolve_slotdups() to speedup class creation (#132156)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
5 weeks agogh-105987: unskip `test_issue105987` from `test_asyncio.test_eager_task_factory`...
Kumar Aditya [Fri, 3 Oct 2025 07:18:57 +0000 (12:48 +0530)] 
gh-105987: unskip `test_issue105987` from `test_asyncio.test_eager_task_factory` (#139538)

5 weeks agogh-137840: Implement PEP 728 (closed and extra_items in typing.TypedDict) (#137933)
Angela Liss [Fri, 3 Oct 2025 05:50:19 +0000 (01:50 -0400)] 
gh-137840: Implement PEP 728 (closed and extra_items in typing.TypedDict) (#137933)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
5 weeks agogh-139322: Reenable test_os.test_getlogin() (#139498)
Victor Stinner [Thu, 2 Oct 2025 20:51:57 +0000 (22:51 +0200)] 
gh-139322: Reenable test_os.test_getlogin() (#139498)

Fix also getlogin() errno.

5 weeks agogh-139495: Fix `hashlib.file_digest()` versionchanged description of `BlockingIOError...
Alex Willmer [Thu, 2 Oct 2025 19:50:36 +0000 (20:50 +0100)] 
gh-139495: Fix `hashlib.file_digest()` versionchanged description of `BlockingIOError` (GH-139496)

* Fix `hashlib.file_digest()` versionchanged description of `BlockingIOError`

The sentence was missing a negation and contradicted the other two
descriptions in the same commit. I believe code behaviour is correct.

* fixup! Fix `hashlib.file_digest()` versionchanged description of `BlockingIOError`

* Remove unncessary NEWS.d entry

5 weeks agogh-139322: Remove redundant `test_os.Win32ErrorTests` (#139477)
Victor Stinner [Thu, 2 Oct 2025 18:46:25 +0000 (20:46 +0200)] 
gh-139322: Remove redundant `test_os.Win32ErrorTests` (#139477)

test_os.OSErrorTests already covers the OSError class and is more
complete than Win32ErrorTests.

5 weeks agogh-55258: Reenable support test_get_original_stdout() (#139499)
Victor Stinner [Thu, 2 Oct 2025 16:10:36 +0000 (18:10 +0200)] 
gh-55258: Reenable support test_get_original_stdout() (#139499)

5 weeks agogh-139504: Catch BrokenPipeError in ssl test_client_sigalgs_mismatch() (#139505)
Victor Stinner [Thu, 2 Oct 2025 16:08:29 +0000 (18:08 +0200)] 
gh-139504: Catch BrokenPipeError in ssl test_client_sigalgs_mismatch() (#139505)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
5 weeks agoRemove @tiran from CODEOWNERS (#139513)
Victor Stinner [Thu, 2 Oct 2025 16:05:37 +0000 (18:05 +0200)] 
Remove @tiran from CODEOWNERS (#139513)

Christian Heimes is now inactive for 2 years.

5 weeks agogh-77476: Remove urllib HTTP test (#139502)
Victor Stinner [Thu, 2 Oct 2025 15:30:08 +0000 (17:30 +0200)] 
gh-77476: Remove urllib HTTP test (#139502)

Remove test_sites_no_connection_close() which is skipped since 2018
(commit 36d56ea826caffbeac0fc0c6d90248b80516e33c).

5 weeks agogh-135944: Add a "Runtime Components" Section to the Execution Model Docs (gh-135945)
Eric Snow [Thu, 2 Oct 2025 15:13:22 +0000 (09:13 -0600)] 
gh-135944: Add a "Runtime Components" Section to the Execution Model Docs (gh-135945)

The section provides a brief overview of the Python runtime's execution environment.  It is meant to be implementation agnostic,

5 weeks agogh-89745: Remove test_embed.test_init_read_set() (#139500)
Victor Stinner [Thu, 2 Oct 2025 14:52:10 +0000 (16:52 +0200)] 
gh-89745: Remove test_embed.test_init_read_set() (#139500)

Since Python 3.11, it's no longer possible to call PyConfig_Read() to
get the path configuration, and then modify the path configuration.

5 weeks agoGH-123299: Copyedit 3.14 What's New: Other Language Changes (#139425)
Adam Turner [Thu, 2 Oct 2025 14:51:48 +0000 (15:51 +0100)] 
GH-123299: Copyedit 3.14 What's New: Other Language Changes (#139425)

5 weeks agogh-135329: Use longer timeout in pyrepl test_repl_eio() (#139503)
Victor Stinner [Thu, 2 Oct 2025 14:44:02 +0000 (16:44 +0200)] 
gh-135329: Use longer timeout in pyrepl test_repl_eio() (#139503)

Replace hardcoded 5 seconds with support.SHORT_TIMEOUT.

Fix the following error on slow CI such as GitHub Action UBSan:

test test_pyrepl failed -- Traceback (most recent call last):
  File "Lib/test/test_pyrepl/test_unix_console.py", line 362, in test_repl_eio
    _, err = proc.communicate(timeout=5)  # sleep for pty to settle
             ~~~~~~~~~~~~~~~~^^^^^^^^^^^
  File "Lib/subprocess.py", line 1219, in communicate
    stdout, stderr = self._communicate(input, endtime, timeout)
                     ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "Lib/subprocess.py", line 2126, in _communicate
    self._check_timeout(endtime, orig_timeout, stdout, stderr)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "Lib/subprocess.py", line 1266, in _check_timeout
    raise TimeoutExpired(
    ...<2 lines>...
            stderr=b''.join(stderr_seq) if stderr_seq else None)
subprocess.TimeoutExpired: Command '[...]' timed out after 5 seconds

5 weeks agogh-139487: add missing imports for standalone doctest `Enum` examples (#139488)
Peter [Thu, 2 Oct 2025 10:28:29 +0000 (18:28 +0800)] 
gh-139487: add missing imports for standalone doctest `Enum` examples (#139488)

5 weeks agogh-135953: Add Gecko reporter to sampling profiler (#139364)
ivonastojanovic [Wed, 1 Oct 2025 20:18:54 +0000 (21:18 +0100)] 
gh-135953: Add Gecko reporter to sampling profiler (#139364)

Signed-off-by: Pablo Galindo Salgado <pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <pablogsal@gmail.com>
5 weeks agogh-116946: partial revert gh-139073 for thread handle type (#139474)
Kumar Aditya [Wed, 1 Oct 2025 17:49:31 +0000 (23:19 +0530)] 
gh-116946: partial revert gh-139073 for thread handle type (#139474)

5 weeks agogh-139322: Create test_os package (#139453)
Victor Stinner [Wed, 1 Oct 2025 14:42:45 +0000 (16:42 +0200)] 
gh-139322: Create test_os package (#139453)

* Move test_posix.py and test_os.py to Lib/test/test_os/.
* Split Windows specific test cases to a new test_windows.py file.

5 weeks agogh-123828: Fix data race in `_interpchannels._waiting_release` (GH-124107)
Nadeshiko Manju [Wed, 1 Oct 2025 11:34:47 +0000 (19:34 +0800)] 
gh-123828: Fix data race in `_interpchannels._waiting_release` (GH-124107)

5 weeks agogh-139327: fix some reference leaks in `sqlite3` error branches (#139328)
Bénédikt Tran [Wed, 1 Oct 2025 09:10:12 +0000 (11:10 +0200)] 
gh-139327: fix some reference leaks in `sqlite3` error branches (#139328)

5 weeks agogh-139210: Move gh-139210 patch NEWS file to correct section (#139469)
Ken Jin [Wed, 1 Oct 2025 08:48:37 +0000 (16:48 +0800)] 
gh-139210: Move gh-139210 patch NEWS file to correct section (#139469)

Move gh-139210 patch NEWS file to correct section

5 weeks agogh-116946: remove unnecessary gc from immutable types (#139073)
Sergey Miryanov [Wed, 1 Oct 2025 07:45:58 +0000 (12:45 +0500)] 
gh-116946: remove unnecessary gc from immutable types (#139073)

5 weeks agogh-138013: Split BufferedIO tests from test_io.test_general (#139454)
Cody Maloney [Wed, 1 Oct 2025 07:06:26 +0000 (00:06 -0700)] 
gh-138013: Split BufferedIO tests from test_io.test_general (#139454)

The last remaining set of tests to split out that are focused on one
specific implementation portion (`bufferedio.c`).

test_io.test_general is now largely tests around `io.open` and module
properties (ex. pickling, class hierarchy, module members, etc).

This closes #138013.

5 weeks agoFix typo in tracemalloc.c (#139450)
Victor Stinner [Wed, 1 Oct 2025 06:58:18 +0000 (08:58 +0200)] 
Fix typo in tracemalloc.c (#139450)

5 weeks agogh-138899: fix `sys.ps1` in asyncio repl (#138900)
yihong [Wed, 1 Oct 2025 05:49:49 +0000 (13:49 +0800)] 
gh-138899: fix `sys.ps1` in asyncio repl (#138900)

5 weeks agogh-92266: Update pre-commit (#139411)
Hugo van Kemenade [Wed, 1 Oct 2025 05:40:54 +0000 (08:40 +0300)] 
gh-92266: Update pre-commit (#139411)

5 weeks agoDocument that `PyInterpreterState_GetDict` returns a borrowed reference (#139451)
Petr Viktorin [Wed, 1 Oct 2025 04:16:06 +0000 (06:16 +0200)] 
Document that `PyInterpreterState_GetDict` returns a borrowed reference (#139451)

5 weeks agoGH-123299: Copyedit 3.14 What's New: Deprecated (#139433)
Adam Turner [Tue, 30 Sep 2025 18:18:13 +0000 (19:18 +0100)] 
GH-123299: Copyedit 3.14 What's New: Deprecated (#139433)

5 weeks agogh-139210: Fix use-after-free in xml.etree.ElementTree.iterparse() (GH-139211)
Ken Jin [Tue, 30 Sep 2025 17:50:50 +0000 (01:50 +0800)] 
gh-139210: Fix use-after-free in xml.etree.ElementTree.iterparse() (GH-139211)

5 weeks agogh-138013: Split TextIO tests from test_io.test_general (#139173)
Cody Maloney [Tue, 30 Sep 2025 15:37:15 +0000 (08:37 -0700)] 
gh-138013: Split TextIO tests from test_io.test_general (#139173)

gh-138013: Split TextIO tests from test_general

These tests take 1.3 seconds on my dev machine, match fairly closely
with testing `textio.c` implementation only.

5 weeks agogh-139116: tracemalloc: Detach thread state when acquiring tables_lock (GH-139449)
Petr Viktorin [Tue, 30 Sep 2025 14:43:49 +0000 (16:43 +0200)] 
gh-139116: tracemalloc: Detach thread state when acquiring tables_lock (GH-139449)

* gh-139116: tracemalloc: Detach thread state when acquiring tables_lock

This prevents a deadlock when:

- One thread is in `_PyTraceMalloc_Stop`, with `TABLES_LOCK` held, calling
  `PyRefTracer_SetTracer` which wants to stop the world
- Another is thread in `PyTraceMalloc_Track`, just attached thread state, waiting
  for `TABLES_LOCK`

Detaching the thread state while waiting for `TABLES_LOCK` allows
`PyRefTracer_SetTracer` to stop the world.

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
5 weeks agogh-63161: Add more tests for source encoding (#139440)
Serhiy Storchaka [Tue, 30 Sep 2025 09:20:17 +0000 (12:20 +0300)] 
gh-63161: Add more tests for source encoding (#139440)

5 weeks agogh-139283: correctly handle `size` limit in `cursor.fetchmany()` (#139296)
Bénédikt Tran [Tue, 30 Sep 2025 09:18:55 +0000 (11:18 +0200)] 
gh-139283: correctly handle `size` limit in `cursor.fetchmany()` (#139296)

Passing a negative or zero size to `cursor.fetchmany()` made it fetch all rows
instead of none.

While this could be considered a security vulnerability, it was decided to treat
this issue as a regular bug as passing a non-sanitized *size* value in the first
place is not recommended.

5 weeks agogh-138092: Allow calling mmap.flush with offset only (#138093)
AN Long [Tue, 30 Sep 2025 09:08:50 +0000 (18:08 +0900)] 
gh-138092: Allow calling mmap.flush with offset only (#138093)

5 weeks agoRemove link to the PDF downloads (#139142)
Adam Turner [Mon, 29 Sep 2025 17:59:25 +0000 (18:59 +0100)] 
Remove link to the PDF downloads (#139142)

5 weeks agogh-130567: Enable previously skipped locale tests on FreeBSD and macOS (GH-138652)
Serhiy Storchaka [Mon, 29 Sep 2025 15:32:38 +0000 (18:32 +0300)] 
gh-130567: Enable previously skipped locale tests on FreeBSD and macOS (GH-138652)

5 weeks agoGH-123299: Copyedit 3.14 What's New: CPython bytecode changes (#139402)
Adam Turner [Mon, 29 Sep 2025 15:11:54 +0000 (16:11 +0100)] 
GH-123299: Copyedit 3.14 What's New: CPython bytecode changes (#139402)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
5 weeks agogh-139146: Check `calloc()` results in `_testembed.c::test_pre_initialization_sys_opt...
Denis Sergeev [Mon, 29 Sep 2025 10:40:36 +0000 (13:40 +0300)] 
gh-139146: Check `calloc()` results in `_testembed.c::test_pre_initialization_sys_options` (#139147)

Reported by: Dmitrii Chuprov <cheese@altlinux.org>
Signed-off-by: Denis Sergeev <zeff@altlinux.org>
5 weeks agogh-76007: Deprecate `__version__` attribute (#138675)
Hugo van Kemenade [Mon, 29 Sep 2025 09:03:23 +0000 (11:03 +0200)] 
gh-76007: Deprecate `__version__` attribute (#138675)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
5 weeks agogh-78319: Fix implementation of IMAP APPEND UTF8 (GH-9436)
Gordon Messmer [Mon, 29 Sep 2025 06:03:06 +0000 (23:03 -0700)] 
gh-78319: Fix implementation of IMAP APPEND UTF8 (GH-9436)

Make UTF8 support for the IMAP APPEND command RFC 6855 compliant.

5 weeks agoEdit outdated comment (#121152)
Jeff Epler [Sun, 28 Sep 2025 21:55:44 +0000 (16:55 -0500)] 
Edit outdated comment (#121152)

A comment about a possible relaxation of how bytes URLs are treated
in Python 3.3 is no longer relevant or useful.

5 weeks agogh-132006: Add support for handling XCPrivacy manifests (#139163)
Russell Keith-Magee [Sun, 28 Sep 2025 21:50:46 +0000 (05:50 +0800)] 
gh-132006: Add support for handling XCPrivacy manifests (#139163)

Adds a PrivacyInfo.xcprivacy file when packaging `_hashlib` and `_ssl` modules
for iOS (based on the original OpenSSL sources); and adds handling to the build
script to allow any app to add `xcprivacy` handling for a binary module.

5 weeks agogh-139393: fix `_CALL_LEN` JIT tests for tuples (#139394)
Bénédikt Tran [Sun, 28 Sep 2025 17:30:44 +0000 (19:30 +0200)] 
gh-139393:  fix `_CALL_LEN` JIT tests for tuples (#139394)

Fix a regression introduced in 7ce25edb8f41e527ed479bf61ef36dc9841b4ac5
where `_PY_NSMALLPOSINTS` was changed from 257 to 1025.

5 weeks agogh-135447: Document the ``NOT_TAKEN`` & ``POP_ITER`` bytecode instructions (#135803)
Yongzi Li [Sun, 28 Sep 2025 16:46:01 +0000 (00:46 +0800)] 
gh-135447: Document the ``NOT_TAKEN`` & ``POP_ITER`` bytecode instructions (#135803)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Ken Jin <kenjin4096@gmail.com>
5 weeks agogh-139374: colorize traceback when using `timeit` command-line interface (#139375)
yihong [Sun, 28 Sep 2025 11:49:18 +0000 (19:49 +0800)] 
gh-139374: colorize traceback when using `timeit` command-line interface (#139375)

---------

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
5 weeks agogh-90949: expose Expat API to tune exponential expansion protections (#139368)
Bénédikt Tran [Sun, 28 Sep 2025 08:27:04 +0000 (10:27 +0200)] 
gh-90949: expose Expat API to tune exponential expansion protections (#139368)

Expose the XML Expat 2.7.2 APIs to tune protections against
"billion laughs" [1] attacks.

The exposed APIs are available on Expat parsers, that is,
parsers created by `xml.parsers.expat.ParserCreate()`, as:

- `parser.SetBillionLaughsAttackProtectionActivationThreshold(threshold)`, and
- `parser.SetBillionLaughsAttackProtectionMaximumAmplification(max_factor)`.

This completes the work in f04bea44c37793561d753dd4ca6e7cd658137553,
and improves the existing related documentation.

[1]: https://en.wikipedia.org/wiki/Billion_laughs_attack