]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 weeks ago[3.14] gh-96491: Deduplicate version in IDLE shell title (GH-139841) (#139931)
Miss Islington (bot) [Sat, 11 Oct 2025 02:02:34 +0000 (04:02 +0200)] 
[3.14] gh-96491: Deduplicate version in IDLE shell title (GH-139841) (#139931)

gh-96491: Deduplicate version in IDLE shell title (GH-139841)

Saving to a file added both the filename and repeated the version.
---------
(cherry picked from commit d4e5802588db3459f04d4b8013cc571a8988e203)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 weeks ago[3.14] gh-139001: Fix thread-safety issue in `pathlib.Path` (gh-139066) (gh-139926)
Miss Islington (bot) [Fri, 10 Oct 2025 21:47:47 +0000 (23:47 +0200)] 
[3.14] gh-139001: Fix thread-safety issue in `pathlib.Path` (gh-139066) (gh-139926)

Don't cache the joined path in `_raw_path` because the caching isn't thread safe.
(cherry picked from commit d9b4eef71e7904fbe3a3786a908e493be7debbff)

Co-authored-by: Sam Gross <colesbury@gmail.com>
4 weeks ago[3.14] gh-138843: Removing "Unpacking" section from Download page (GH-139921)
Miss Islington (bot) [Fri, 10 Oct 2025 19:31:38 +0000 (21:31 +0200)] 
[3.14] gh-138843: Removing "Unpacking" section from Download page (GH-139921)

(cherry picked from commit aa840f500ca901deea29669df68992193a273a62)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 weeks ago[3.14] gh-139894: fix incorrect sharing of current task while forking in `asyncio...
Kumar Aditya [Fri, 10 Oct 2025 17:06:02 +0000 (22:36 +0530)] 
[3.14] gh-139894: fix incorrect sharing of current task while forking in `asyncio` (GH-139897) (#139913)

* [3.14] gh-139894: fix incorrect sharing of current task while forking in `asyncio`  (GH-139897)

Fix incorrect sharing of current task with the forked child process by clearing thread state's current task and current loop in `PyOS_AfterFork_Child`.
(cherry picked from commit b881df47ff1adca515d1de04f689160ddae72142)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* Update Lib/test/test_asyncio/test_unix_events.py

4 weeks ago[3.14] gh-101100: Document `zlib` public constants to fix reference warnings (GH...
Miss Islington (bot) [Fri, 10 Oct 2025 15:38:35 +0000 (17:38 +0200)] 
[3.14] gh-101100: Document `zlib` public constants to fix reference warnings (GH-139835) (#139910)

gh-101100: Document `zlib` public constants to fix reference warnings (GH-139835)
(cherry picked from commit c7f1da97eb4639a17fb01ef122155bab2f262a34)

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: Victor Stinner <vstinner@python.org>
4 weeks ago[3.14] gh-139843: Document signals (SIGSTOP, SIGVTALRM, SIGPROF) to fix sphinx refere...
Miss Islington (bot) [Fri, 10 Oct 2025 15:36:01 +0000 (17:36 +0200)] 
[3.14] gh-139843: Document signals (SIGSTOP, SIGVTALRM, SIGPROF) to fix sphinx references (GH-139896) (GH-139908)

gh-139843: Document signals (SIGSTOP, SIGVTALRM, SIGPROF) to fix sphinx references (GH-139896)
(cherry picked from commit 302f19d1f1880dd29deb5ad02fa2c21639319559)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
4 weeks ago[3.14] gh-138860: Lazy import rlcompleter in pdb to avoid deadlock in subprocess...
Miss Islington (bot) [Fri, 10 Oct 2025 14:23:52 +0000 (16:23 +0200)] 
[3.14] gh-138860: Lazy import rlcompleter in pdb to avoid deadlock in subprocess (GH-139185) (GH-139305) (GH-139280)

* gh-138860: Lazy import rlcompleter in pdb to avoid deadlock in subprocess (GH-139185)
(cherry picked from commit c8624cd36746b17d8f991cde63705e9419e940de)

* gh-139289: Lazy import rlcompleter to fix the refleak (GH-139305)
(cherry picked from commit 8288f3693f50058ad9b9fe04e01f5dad902d8bad)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
4 weeks ago[3.14] gh-139065: Fix trailing space before long word in textwrap (GH-139070) (GH...
Miss Islington (bot) [Fri, 10 Oct 2025 13:54:46 +0000 (15:54 +0200)] 
[3.14] gh-139065: Fix trailing space before long word in textwrap (GH-139070) (GH-139902)

Fix trailing space before a wrapped long word if the line length with
a space is exactly "width".
(cherry picked from commit 1c598e04361dbfc9cf465f3a02f83715c11b028c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 weeks ago[3.14] gh-139783: Fix inspect.getsourcelines() for the case when a decorator is follo...
Miss Islington (bot) [Fri, 10 Oct 2025 08:18:32 +0000 (10:18 +0200)] 
[3.14] gh-139783: Fix inspect.getsourcelines() for the case when a decorator is followed by a comment or an empty line (GH-139836) (GH-139889)

(cherry picked from commit f4104f5d74b99712253fceb39a4460ee3f7a281c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 weeks ago[3.14] gh-139823: Extend list of optional dependencies in `configure.rst` (GH-139826...
Miss Islington (bot) [Fri, 10 Oct 2025 06:56:05 +0000 (08:56 +0200)] 
[3.14] gh-139823: Extend list of optional dependencies in `configure.rst` (GH-139826) (#139887)

gh-139823: Extend list of optional dependencies in `configure.rst` (GH-139826)
(cherry picked from commit 8f14bddeae8935817166c4f594466f42c9f14139)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Emma Smith <emma@emmatyping.dev>
Co-authored-by: Victor Stinner <vstinner@python.org>
4 weeks ago[3.14] gh-139843: Document `signal.SIGQUIT` to fix Sphinx references (GH-139844)...
Miss Islington (bot) [Fri, 10 Oct 2025 06:30:53 +0000 (08:30 +0200)] 
[3.14] gh-139843: Document `signal.SIGQUIT` to fix Sphinx references (GH-139844) (#139885)

gh-139843: Document `signal.SIGQUIT` to fix Sphinx references (GH-139844)
(cherry picked from commit 1f87d528a1fb999ff9cdb411a1ccc3f8ee674293)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
4 weeks ago[3.14] gh-139842: Clarify `__module__` description in typing.rst (GH-139863) (#139869)
Miss Islington (bot) [Thu, 9 Oct 2025 18:01:53 +0000 (20:01 +0200)] 
[3.14] gh-139842: Clarify `__module__` description in typing.rst (GH-139863) (#139869)

Co-authored-by: Timothée Mazzucotelli <dev@pawamoy.fr>
4 weeks ago[3.14] GH-139809: Fix argparse subcommand prog not respecting color environment varia...
Miss Islington (bot) [Thu, 9 Oct 2025 17:19:54 +0000 (19:19 +0200)] 
[3.14] GH-139809: Fix argparse subcommand prog not respecting color environment variables (GH-139818) (#139866)

GH-139809: Fix argparse subcommand prog not respecting color environment variables (GH-139818)
(cherry picked from commit 9fc4366f09904fd9aac797d542e332e8a4c1a921)

Co-authored-by: Savannah Ostrowski <savannah@python.org>
4 weeks ago[3.14] gh-139672: Remove references to `passlib` (GH-139673) (#139867)
Miss Islington (bot) [Thu, 9 Oct 2025 17:19:35 +0000 (19:19 +0200)] 
[3.14] gh-139672: Remove references to `passlib` (GH-139673) (#139867)

gh-139672: Remove references to `passlib` (GH-139673)
(cherry picked from commit 04461510fb8bedc054477c2634ffd0e575485b12)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
4 weeks ago[3.14] gh-139845: do not print twice in default asyncio REPL (GH-139846) (#139859)
Miss Islington (bot) [Thu, 9 Oct 2025 16:13:11 +0000 (18:13 +0200)] 
[3.14] gh-139845: do not print twice in default asyncio REPL (GH-139846) (#139859)

gh-139845: do not print twice in default asyncio REPL (GH-139846)
(cherry picked from commit a310b3a99d05e107963023a5736b67afe4ae1968)

Co-authored-by: yihong <zouzou0208@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
4 weeks ago[3.14] gh-139391: properly handle `signal.signal()` in `UnixConsole` when called...
Miss Islington (bot) [Thu, 9 Oct 2025 16:10:51 +0000 (18:10 +0200)] 
[3.14] gh-139391: properly handle `signal.signal()` in `UnixConsole` when called from a non-main thread (GH-139392) (#139858)

gh-139391: properly handle `signal.signal()` in `UnixConsole` when called from a non-main thread (GH-139392)
(cherry picked from commit b8c8b8f1d30767e5358ffa93d41e6e27ca60570d)

Co-authored-by: yihong <zouzou0208@gmail.com>
4 weeks ago[3.14] gh-133400: Fixed Ctrl+D (^D) behavior in :mod:`_pyrepl` module (GH-133883...
Łukasz Langa [Thu, 9 Oct 2025 15:38:25 +0000 (16:38 +0100)] 
[3.14] gh-133400: Fixed Ctrl+D (^D) behavior in :mod:`_pyrepl` module (GH-133883) (GH-139850)

(cherry picked from commit 81959a0364f5bc15414d5bd61c5c0d019d486fe5)

Co-authored-by: DeepWzh <wzh2012@outlook.com>
Co-authored-by: adam j hartz <adam@smatz.net>
4 weeks ago[3.14] gh-116738: make `mmap` module thread-safe (GH-139237) (#139825)
Kumar Aditya [Thu, 9 Oct 2025 14:49:03 +0000 (20:19 +0530)] 
[3.14] gh-116738: make `mmap` module thread-safe (GH-139237) (#139825)

* [3.14] gh-116738: make `mmap` module thread-safe (GH-139237)
(cherry picked from commit 7f155f9c46e2dd7dec5e12ebec3323dfd95fe1f0)

Co-authored-by: Alper <alperyoney@fb.com>
4 weeks ago[3.14] GH-129805: Clean up some changes from GH-129806 (GH-133540) (#138972)
Miss Islington (bot) [Thu, 9 Oct 2025 11:12:25 +0000 (13:12 +0200)] 
[3.14] GH-129805: Clean up some changes from GH-129806 (GH-133540) (#138972)

Co-authored-by: Brandt Bucher <brandt@python.org>
4 weeks ago[3.14] gh-139742: Add support for Python 3.14 t-string prefixes in IDLE colorizer...
Miss Islington (bot) [Thu, 9 Oct 2025 09:51:58 +0000 (11:51 +0200)] 
[3.14] gh-139742: Add support for Python 3.14 t-string prefixes in IDLE colorizer and tests (GH-139756) (#139831)

gh-139742: Add support for Python 3.14 t-string prefixes in IDLE colorizer and tests (GH-139756)

Add 't' prefix to colorizer.py stringprefix regex to support Python 3.14 template strings.
Add t prefixes to test_colorizer.py source test text and adjust line numbers on test methods.
---------
(cherry picked from commit 6fd141834193e3dc2423e785d97eb127c972a70e)

Co-authored-by: Anuradha Agrawal <paysur2111@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 weeks ago[3.14] gh-101100: Fix reference warnings in `c-api/init.rst` documenting `PyGILState_...
Miss Islington (bot) [Thu, 9 Oct 2025 09:41:57 +0000 (11:41 +0200)] 
[3.14] gh-101100: Fix reference warnings in `c-api/init.rst` documenting `PyGILState_STATE` (GH-139572) (#139832)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 weeks ago[3.14] gh-139743: Avoid import-time print in test_sqlite3 (GH-139746) (GH-139828)
Miss Islington (bot) [Thu, 9 Oct 2025 08:25:38 +0000 (10:25 +0200)] 
[3.14] gh-139743: Avoid import-time print in test_sqlite3 (GH-139746) (GH-139828)

(cherry picked from commit 65089406a54df6d3fdc65f5f7e7691ec5de088d8)

Co-authored-by: Peter <peter86225@gmail.com>
4 weeks ago[3.14] gh-139805: Bump `test_repl_eio` timeout for slow builtbots (GH-139807) (#139812)
Miss Islington (bot) [Wed, 8 Oct 2025 23:00:20 +0000 (01:00 +0200)] 
[3.14] gh-139805: Bump `test_repl_eio` timeout for slow builtbots (GH-139807) (#139812)

gh-139805: Bump `test_repl_eio` timeout for slow builtbots (GH-139807)
(cherry picked from commit e7e3d1d4a8dece01b1bbd0253684d5b46b2409d7)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 weeks ago[3.14] Remove Cirrus macOS runners from CI (GH-139799) (#139802)
Miss Islington (bot) [Wed, 8 Oct 2025 19:38:38 +0000 (21:38 +0200)] 
[3.14] Remove Cirrus macOS runners from CI (GH-139799) (#139802)

Co-authored-by: Jacob Coffee <jacob@z7x.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 weeks ago[3.14] gh-139748: fix leaks in AC error paths when using unicode FS-b… (#139789)
Kumar Aditya [Wed, 8 Oct 2025 16:46:21 +0000 (22:16 +0530)] 
[3.14] gh-139748: fix leaks in AC error paths when using unicode FS-b… (#139789)

* [3.14] gh-139748: fix leaks in AC error paths when using unicode FS-based converters (GH-139765)
(cherry picked from commit b04a57deef66ce08233be57d1ab5873388df2cea)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
4 weeks ago[3.14] gh-138843: Clean up downloads page (GH-138844) (#139796)
Miss Islington (bot) [Wed, 8 Oct 2025 16:21:50 +0000 (18:21 +0200)] 
[3.14] gh-138843: Clean up downloads page (GH-138844) (#139796)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 weeks ago[3.14] gh-139525: Don't specialize functions which have a modified vectorcall (GH...
Dino Viehland [Wed, 8 Oct 2025 16:13:34 +0000 (09:13 -0700)] 
[3.14] gh-139525: Don't specialize functions which have a modified vectorcall (GH-139524) (#139709)

Don't specialize functions which have a modified vectorcall

4 weeks ago[3.14] gh-135676: Add a summary of source characters (GH-138194) (GH-139781)
Miss Islington (bot) [Wed, 8 Oct 2025 16:07:05 +0000 (18:07 +0200)] 
[3.14] gh-135676: Add a summary of source characters (GH-138194) (GH-139781)

(cherry picked from commit 59a6f9d8c52af40ccd31e5dca848f71808c24b06)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Blaise Pabon <blaise@gmail.com>
Co-authored-by: Micha Albert <info@micha.zone>
Co-authored-by: KeithTheEE <kmurrayis@gmail.com>
4 weeks ago[3.14] gh-139736: Fix argparse indentation overshoot (GH-139738) (#139793)
Miss Islington (bot) [Wed, 8 Oct 2025 16:02:08 +0000 (18:02 +0200)] 
[3.14] gh-139736: Fix argparse indentation overshoot (GH-139738) (#139793)

gh-139736: Fix argparse indentation overshoot (GH-139738)
(cherry picked from commit 72e370c910bd941806a36b01f2f57f4c53a78eed)

Co-authored-by: ed <s@ocv.me>
Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
4 weeks ago[3.14] gh-101100: Fix all Sphinx warnings in `Doc/library/subprocess.rst` (GH-139576...
Miss Islington (bot) [Wed, 8 Oct 2025 15:45:37 +0000 (17:45 +0200)] 
[3.14] gh-101100: Fix all Sphinx warnings in `Doc/library/subprocess.rst` (GH-139576) (#139787)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 weeks ago[3.14] gh-139774: use relaxed atomics for datetime hashes (GH-139775) (#139780)
Miss Islington (bot) [Wed, 8 Oct 2025 15:39:09 +0000 (17:39 +0200)] 
[3.14] gh-139774: use relaxed atomics for datetime hashes (GH-139775) (#139780)

gh-139774: use relaxed atomics for datetime hashes (GH-139775)
(cherry picked from commit 49fb46f555881c9f2d20ca87c8187c8718217c77)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
4 weeks agogh-139769: Update `PCBuild/find_python.bat` to allow discovery of Python 3.14 (GH...
Miss Islington (bot) [Wed, 8 Oct 2025 15:26:22 +0000 (17:26 +0200)] 
gh-139769: Update `PCBuild/find_python.bat` to allow discovery of Python 3.14 (GH-139770)

Enable 3.14 py.exe can be use on PCBuild
(cherry picked from commit 570d17259f824302d20567a3a2f32c67ebdaefcd)

Co-authored-by: Wulian233 <1055917385@qq.com>
4 weeks agoAdds support for building with VisualStudioVersion = 18.0 (GH-138980)
Miss Islington (bot) [Wed, 8 Oct 2025 15:13:13 +0000 (17:13 +0200)] 
Adds support for building with VisualStudioVersion = 18.0 (GH-138980)

(cherry picked from commit 6920fa4bcddad4abb46a3ae40e16f13566d6cf26)

Co-authored-by: Steve Dower <steve.dower@python.org>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 weeks ago[3.14] GH-139590: Run `ruff format` on pre-commit for Tools/wasm (GH-139591) (#139744)
Miss Islington (bot) [Wed, 8 Oct 2025 15:11:09 +0000 (17:11 +0200)] 
[3.14] GH-139590: Run `ruff format` on pre-commit for Tools/wasm (GH-139591) (#139744)

Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 weeks ago[3.14] gh-133210: Fix `test_pydoc` without docstrings (GH-139654) (#139777)
Miss Islington (bot) [Wed, 8 Oct 2025 14:15:52 +0000 (16:15 +0200)] 
[3.14] gh-133210: Fix `test_pydoc` without docstrings (GH-139654) (#139777)

gh-133210: Fix `test_pydoc` without docstrings (GH-139654)
(cherry picked from commit 708de26e31b65cd3ae768882c8da59284917a80d)

Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
4 weeks ago[3.14] gh-133210: Fix `test_inspect` without docstrings (GH-139651) (#139776)
Miss Islington (bot) [Wed, 8 Oct 2025 14:14:19 +0000 (16:14 +0200)] 
[3.14] gh-133210: Fix `test_inspect` without docstrings (GH-139651) (#139776)

gh-133210: Fix `test_inspect` without docstrings (GH-139651)
(cherry picked from commit 7c70cc5c23971ef448ea59827c6e6ae310157356)

Co-authored-by: sobolevn <mail@sobolevn.me>
4 weeks ago[3.14] gh-83424: Allow empty name if handle is non-null when create ctypes.CDLL on...
Miss Islington (bot) [Wed, 8 Oct 2025 13:56:13 +0000 (15:56 +0200)] 
[3.14] gh-83424: Allow empty name if handle is non-null when create ctypes.CDLL on Windows (GH-136878) (#138546)

gh-83424: Allow empty name if handle is non-null when create ctypes.CDLL on Windows (GH-136878)
(cherry picked from commit ed522ed211b7b9ea9d85a93b5d6ca79b2df3ef58)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 weeks ago[3.14] gh-137589: Zipfile tests: close file objects (GH-138080) (#139766)
Miss Islington (bot) [Wed, 8 Oct 2025 13:52:08 +0000 (15:52 +0200)] 
[3.14] gh-137589: Zipfile tests: close file objects (GH-138080) (#139766)

gh-137589: Zipfile tests: close file objects (GH-138080)

Zipfile tests: close file objects
(cherry picked from commit 5cea8435943b4f9d22c89c80d86c2ba3b392c6f9)

Co-authored-by: Rogdham <3994389+Rogdham@users.noreply.github.com>
4 weeks ago[3.14] gh-137317: Fix inspect.signature() for class with wrapped __init__ or __new__...
Miss Islington (bot) [Wed, 8 Oct 2025 13:48:06 +0000 (15:48 +0200)] 
[3.14] gh-137317: Fix inspect.signature() for class with wrapped __init__ or __new__ (GH-137862) (#138224)

gh-137317: Fix inspect.signature() for class with wrapped __init__ or __new__ (GH-137862)

Fixed several cases where __init__, __new__ or metaclass` __call__ is a descriptor
that returns a wrapped function.
(cherry picked from commit 025a2135eff848abf24f9dc52c81386eea9da397)

Co-authored-by: Ju4tCode <42488585+yanyongyu@users.noreply.github.com>
4 weeks ago[3.14] gh-101100: Fix some Sphinx reference warnings in ``whatsnew/2.6.rst`` (GH...
Miss Islington (bot) [Wed, 8 Oct 2025 12:46:41 +0000 (14:46 +0200)] 
[3.14] gh-101100: Fix some Sphinx reference warnings in ``whatsnew/2.6.rst`` (GH-139236) (GH-139568)

(cherry picked from commit 04a2f80a604ccb214902f35deebf0d075543737c)

Co-authored-by: rowanbudge <rowanbudge@gmail.com>
Co-authored-by: rowanvil <rowan@anvil.works>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
4 weeks ago[3.14] GH-137573: Add test to check that the margin used for overflow protection...
Miss Islington (bot) [Wed, 8 Oct 2025 12:44:16 +0000 (14:44 +0200)] 
[3.14] GH-137573: Add test to check that the margin used for overflow protection is larger than the stack space used by the interpreter (GH-137724) (GH-139295)

(cherry picked from commit 16eae6d90d49ef036b010777ceffd130cfa96126)

Co-authored-by: Mark Shannon <mark@hotpy.org>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 weeks ago[3.14] gh-60462: Fix locale.strxfrm() on Solaris (GH-138242) (GH-138448)
Miss Islington (bot) [Wed, 8 Oct 2025 12:34:51 +0000 (14:34 +0200)] 
[3.14] gh-60462: Fix locale.strxfrm() on Solaris (GH-138242) (GH-138448)

It should interpret the result of wcsxfrm() as a sequence of abstract
integers, not a sequence of Unicode code points or using other encoding
scheme that does not preserve ordering.
(cherry picked from commit 482fd0c811a366f25bd076fc73bf37ffb6b3081e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 weeks ago[3.14] gh-137490: Fix signal.sigwaitinfo() on NetBSD (GH-137523) (GH-138935)
Miss Islington (bot) [Wed, 8 Oct 2025 12:33:30 +0000 (14:33 +0200)] 
[3.14] gh-137490: Fix signal.sigwaitinfo() on NetBSD (GH-137523) (GH-138935)

Handle ECANCELED in the same way as EINTR to work around the Posix
violation in the NetBSD's implementation.
(cherry picked from commit 07d0b95b05dfaf5832f44c2fbc956761f9e29571)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 weeks ago[3.14] gh-137056: Fix DTrace build support on NetBSD (GH-137057) (GH-137444)
Miss Islington (bot) [Wed, 8 Oct 2025 12:31:26 +0000 (14:31 +0200)] 
[3.14] gh-137056: Fix DTrace build support on NetBSD (GH-137057) (GH-137444)

(cherry picked from commit 54a5fdffc8e20f111e7a7d2df352e8be057177ff)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
4 weeks ago[3.14] gh-137463: Update `validate_abstract_methods` in `test_collections.py` (GH...
Miss Islington (bot) [Wed, 8 Oct 2025 12:30:54 +0000 (14:30 +0200)] 
[3.14] gh-137463: Update `validate_abstract_methods` in `test_collections.py` (GH-137464) (GH-137503)

Update `validate_abstract_methods` in `test_collections.py`

The test for missing abstract methods in `validate_abstract_methods` incorrectly attempted to instantiate the generated class `C` with an argument (`C(name)`), which always raises a `TypeError: C() takes no arguments`. Although the test originally passes, it passes for the wrong reason.

This change makes the test correctly validate the enforcement of abstract methods in ABCs.
(cherry picked from commit 5be872350d562e6c9987b09ff4b7bda80a2f9cd0)

Co-authored-by: Guilherme Leobas <guilhermeleobas@gmail.com>
4 weeks ago[3.14] gh-137754: Fix import of zoneinfo if _datetime is not available (GH-137845...
Miss Islington (bot) [Wed, 8 Oct 2025 12:28:41 +0000 (14:28 +0200)] 
[3.14] gh-137754: Fix import of zoneinfo if _datetime is not available (GH-137845) (GH-138084)

Both modules should use the Python implementation in that case.
(cherry picked from commit 6620ef0ff62dea2632bedf9afa88aa4780a2c9d9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 weeks ago[3.14] gh-137986: Fix and improve the csv functions docstrings (GH-137987) (GH-138107)
Miss Islington (bot) [Wed, 8 Oct 2025 12:27:57 +0000 (14:27 +0200)] 
[3.14] gh-137986: Fix and improve the csv functions docstrings (GH-137987) (GH-138107)

The csv.register_dialect() docstring no longer imply that it returns a dialect.
All functions have now signatures.
(cherry picked from commit aa1dbd4dde32951de2e7438b56d6761001604ee2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: maurycy <5383+maurycy@users.noreply.github.com>
4 weeks ago[3.14] gh-71679: Improve tests for repr() of bytes and bytearray (GH-138180) (GH...
Miss Islington (bot) [Wed, 8 Oct 2025 12:27:28 +0000 (14:27 +0200)] 
[3.14] gh-71679: Improve tests for repr() of bytes and bytearray (GH-138180) (GH-138182)

* Merge existing tests test_repr_str and test_to_str.
* Add more tests for non-printable and non-ASCII bytes.
* Add tests for special escape sequences ('\t\n\r').
* Add tests for slashes.
* Add more tests for quotes.
* Add tests for subclasses.
* Add test for non-ASCII class name.
* Only apply @check_bytes_warnings for str() tests.
(cherry picked from commit 0dbbf61cc2550428ff99daee367364c688031e1a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 weeks ago[3.14] bpo-41839: Fix error checking in sched_get_priority_ functions (GH-22374)...
Miss Islington (bot) [Wed, 8 Oct 2025 12:26:59 +0000 (14:26 +0200)] 
[3.14] bpo-41839: Fix error checking in sched_get_priority_ functions (GH-22374) (GH-138201)

(cherry picked from commit bbcb75c986c47887e6c0757e63d59cd7af544f39)

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
4 weeks ago[3.14] gh-138204: Forbid expansion of a shared anonymous mmap on Linux (GH-138220...
Miss Islington (bot) [Wed, 8 Oct 2025 12:26:09 +0000 (14:26 +0200)] 
[3.14] gh-138204: Forbid expansion of a shared anonymous mmap on Linux (GH-138220) (GH-138386)

This is a Linux kernel bug which caused a bus error.
https://bugzilla.kernel.org/show_bug.cgi?id=8691
(cherry picked from commit 33fcb0c4a054f646d9d3686c145209a893b09bb0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 weeks ago[3.14] gh-88375, gh-111788: Fix parsing errors and normalization in robotparser ...
Miss Islington (bot) [Wed, 8 Oct 2025 12:22:44 +0000 (14:22 +0200)] 
[3.14] gh-88375, gh-111788: Fix parsing errors and normalization in robotparser (GH-138502) (GH-138548)

* Don't fail trying to parse weird patterns.
* Don't fail trying to decode non-UTF-8 "robots.txt" files.
* No longer ignore trailing "?" in patterns and URLs.
* Distinguish raw special characters "?", "=" and "&" from the
  percent-encoded ones.
* Remove tests that do nothing.
(cherry picked from commit cb7ef18d70a0bc1363799e2dfa475db457155e43)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 weeks ago[3.14] gh-118981: multiprocessing.popen_spawn_posix, fix potential hang (gh-118982...
Miss Islington (bot) [Wed, 8 Oct 2025 12:22:05 +0000 (14:22 +0200)] 
[3.14] gh-118981: multiprocessing.popen_spawn_posix, fix potential hang (gh-118982) (GH-138605)

fix potential hang.

It can happen that the child crashes right in the beginning for whatever reason. In this case, the parent will hang when writing into the pipe, because the child fd is not closed yet.

The normal pattern is to close the child fds right after the child proc is forked/executed/spawned, so when the child dies, then also the pipes will be closed, and there will be no hang (the parent gets SIGPIPE instead).
(cherry picked from commit 8ed5a2b56cc6a8635e586c641b0b837669f6677b)

Co-authored-by: Albert Zeyer <albzey@gmail.com>
4 weeks ago[3.14] gh-70765: avoid waiting for HTTP headers when parsing HTTP/0.9 requests (GH...
Miss Islington (bot) [Wed, 8 Oct 2025 10:39:59 +0000 (12:39 +0200)] 
[3.14] gh-70765: avoid waiting for HTTP headers when parsing HTTP/0.9 requests (GH-139514) (#139600)

(cherry picked from commit 13dc2fde8cec1e8aad04c7635b3da4ff3e3dcb00)
(cherry picked from commit 1fe89d324e6b96dc44a7bd593c428a90d1f39d55)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
4 weeks ago[3.14] gh-92266: Update pre-commit (GH-139411) (#139466)
Miss Islington (bot) [Wed, 8 Oct 2025 10:25:17 +0000 (12:25 +0200)] 
[3.14] gh-92266: Update pre-commit (GH-139411) (#139466)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 weeks ago[3.14] gh-136912: fix handling of `OverflowError` in `hmac.digest` (GH-136917) (...
Bénédikt Tran [Wed, 8 Oct 2025 10:09:45 +0000 (12:09 +0200)] 
[3.14] gh-136912: fix handling of `OverflowError` in `hmac.digest` (GH-136917) (#137116)

The OpenSSL and HACL* implementations of HMAC single-shot
digest computation reject keys whose length exceeds `INT_MAX`
and `UINT32_MAX` respectively. The OpenSSL implementation
also rejects messages whose length exceed `INT_MAX`.

Using such keys in `hmac.digest` previously raised an `OverflowError`
which was propagated to the caller. This commit mitigates this case by
making `hmac.digest` fall back to HMAC's pure Python implementation
which accepts arbitrary large keys or messages.

This change only affects the top-level entrypoint `hmac.digest`, leaving
`_hashopenssl.hmac_digest` and `_hmac.compute_digest` untouched.

(cherry picked from commit d658b9053beaacaae80e318f59a5ddd672aa757a)

4 weeks ago[3.14] gh-91214: Skip tests failing on Solaris (GH-31978) (GH-138450)
Miss Islington (bot) [Wed, 8 Oct 2025 08:42:42 +0000 (10:42 +0200)] 
[3.14] gh-91214: Skip tests failing on Solaris (GH-31978) (GH-138450)

(cherry picked from commit 34ed03875a786879fe292fe472142ae0f3da0e80)

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
4 weeks ago[3.14] gh-135386: Fix "unable to open database file" errors on readonly DB (GH-135566...
Miss Islington (bot) [Wed, 8 Oct 2025 08:41:09 +0000 (10:41 +0200)] 
[3.14] gh-135386: Fix "unable to open database file" errors on readonly DB (GH-135566) (GH-138056)

Add immutable=1 flag for read-only SQLite access to avoid WAL/SHM errors on readonly DB.
(cherry picked from commit c0ae92b7c07d8146bbcc6ed5197f97a7a16efded)

Co-authored-by: General_K1ng <generak1ng0@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 weeks ago[3.14] gh-138010: Fix `__init_subclass__` forwarding by `warnings.deprecated` (GH...
Miss Islington (bot) [Wed, 8 Oct 2025 04:29:28 +0000 (06:29 +0200)] 
[3.14] gh-138010: Fix `__init_subclass__` forwarding by `warnings.deprecated` (GH-138210) (#138561)

gh-138010: Fix `__init_subclass__` forwarding by `warnings.deprecated` (GH-138210)
(cherry picked from commit e2c038f5be2df39a7b06364dec0836a25c423b67)

Co-authored-by: Brian Schubert <brianm.schubert@g
4 weeks ago[3.14] gh-127647: Fix and enable I/O protocol tests (GH-138369) (#138376)
Miss Islington (bot) [Wed, 8 Oct 2025 04:29:02 +0000 (06:29 +0200)] 
[3.14] gh-127647: Fix and enable I/O protocol tests (GH-138369) (#138376)

gh-127647: Fix and enable I/O protocol tests (GH-138369)
(cherry picked from commit 3f23888fd773dd1ead2adcdd0d586eb6e831d154)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
4 weeks ago[3.14] gh-137706: make typing._is_unpacked_typevartuple check for `True` instead...
Miss Islington (bot) [Wed, 8 Oct 2025 04:23:47 +0000 (06:23 +0200)] 
[3.14] gh-137706: make typing._is_unpacked_typevartuple check for `True` instead of truthy (GH-137712) (#138574)

gh-137706: make typing._is_unpacked_typevartuple check for `True` instead of truthy (GH-137712)
(cherry picked from commit 7e652f402f84b412ec46cec42cb103f489a0087e)

Co-authored-by: David Ellis <ducksual@gmail.com>
4 weeks ago[3.14] gh-138558: Improve handling of Template annotations in annotationlib (GH-13907...
Miss Islington (bot) [Wed, 8 Oct 2025 04:23:22 +0000 (06:23 +0200)] 
[3.14] gh-138558: Improve handling of Template annotations in annotationlib (GH-139072) (#139272)

gh-138558: Improve handling of Template annotations in annotationlib (GH-139072)
(cherry picked from commit 6ec058a1f7fcc016fa3b7432bcd0aa6e7d2b21ce)

Co-authored-by: Dave Peck <davepeck@gmail.com>
4 weeks ago[3.14] GH-137484: Have `Tools/wasm/wasi` use the build triple instead of "build"...
Miss Islington (bot) [Wed, 8 Oct 2025 02:11:31 +0000 (04:11 +0200)] 
[3.14] GH-137484: Have `Tools/wasm/wasi` use the build triple instead of "build" (GH-137485) (#137487)

GH-137484: Have `Tools/wasm/wasi` use the build triple instead of "build" (GH-37485)

This should help prevent issuse where something like a container is used to do one build and then someone tries to build again locally.
(cherry picked from commit 0953200b136bcb3293cc1bd57a062796ffcd529d)

Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 weeks ago[3.14] gh-138813: Fix mutable default kwargs={} in multiprocessing BaseProcess and...
Miss Islington (bot) [Wed, 8 Oct 2025 00:37:30 +0000 (02:37 +0200)] 
[3.14] gh-138813: Fix mutable default kwargs={} in multiprocessing BaseProcess and DummyProcess to use None (GH-138814) (#139084)

gh-138813: Fix mutable default kwargs={} in multiprocessing BaseProcess and DummyProcess to use None (GH-138814)

* gh-138813: Default `BaseProcess` `kwargs` to `None` (GH-138814)

Set `BaseProcess.__init__(..., kwargs=None)` and initialize `kwargs` with
`dict(kwargs) if kwargs else {}`. This avoids a shared mutable default and
matches threading.Thread behavior.

* DummyProcess kwargs=None (which threading.Thread accepts properly)
(cherry picked from commit 5a15e7378996358848394930343e9633b6fec8a9)

Co-authored-by: Denis Sergeev <newjimbatler00@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
4 weeks ago[3.14] gh-126631: gh-137996: fix pre-loading of `__main__` (GH-135295) (#138607)
Miss Islington (bot) [Wed, 8 Oct 2025 00:37:04 +0000 (02:37 +0200)] 
[3.14] gh-126631: gh-137996: fix pre-loading of `__main__` (GH-135295) (#138607)

gh-126631: gh-137996: fix pre-loading of `__main__` (GH-135295)

gh-126631: gh-137996: fix pre-loading of `__main__`

The `main_path` parameter was renamed `init_main_from_name`, update the
forkserver code accordingly.  This was leading to slower startup times when people
were trying to preload the main module.

---------
(cherry picked from commit 0912b3a6dbd226bea79eb8d70d5a06230804d4cb)

Co-authored-by: Duane Griffin <duaneg@dghda.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
4 weeks ago[3.14] GH-137248: Add a `--logdir` option to `Tools/wasm/wasi` (GH-137249) (GH-137252)
Miss Islington (bot) [Tue, 7 Oct 2025 23:51:19 +0000 (01:51 +0200)] 
[3.14] GH-137248: Add a `--logdir` option to `Tools/wasm/wasi` (GH-137249) (GH-137252)

GH-137248: Add a `--logdir` option to `Tools/wasm/wasi` (GH-137249)
(cherry picked from commit 94498a53f308a079be9860e0f0d470eeaeb082ff)

Co-authored-by: Brett Cannon <brett@python.org>
4 weeks ago[3.14] GH-137243: Have `Tools/wasm/wasi` detect WASI SDK installs in `/opt` when...
Miss Islington (bot) [Tue, 7 Oct 2025 23:13:35 +0000 (01:13 +0200)] 
[3.14] GH-137243: Have `Tools/wasm/wasi` detect WASI SDK installs in `/opt` when the release tarball is extracted (GH-137244) (GH-137250)

GH-137243: Have `Tools/wasm/wasi` detect WASI SDK installs in `/opt` when the release tarball is extracted (GH-137244)
(cherry picked from commit 2f1a9f2ed498b3cb2dd5f4616bf3a07fd1ad074c)

Co-authored-by: Brett Cannon <brett@python.org>
4 weeks ago[3.14] Drop explicit tool installation in the dev container (GH-138211) (GH-138212)
Miss Islington (bot) [Tue, 7 Oct 2025 21:38:31 +0000 (23:38 +0200)] 
[3.14] Drop explicit tool installation in the dev container (GH-138211) (GH-138212)

Drop explicit tool installation in the dev container (GH-138211)

This is now handled upstream in the dev container image itself.
(cherry picked from commit d910b93f786982a11d7d6b7562716c2f50513f00)

Co-authored-by: Brett Cannon <brett@python.org>
4 weeks ago[3.14] gh-139700: Check consistency of the zip64 end of central directory record...
Miss Islington (bot) [Tue, 7 Oct 2025 21:16:26 +0000 (23:16 +0200)] 
[3.14] gh-139700: Check consistency of the zip64 end of central directory record (GH-139702) (GH-139706)

Support records with "zip64 extensible data" if there are no bytes
prepended to the ZIP file.
(cherry picked from commit 162997bb70e067668c039700141770687bc8f267)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 weeks ago[3.14] gh-105487: Fix `__dir__` entries of `GenericAlias` (GH-138578) (GH-138629)
Miss Islington (bot) [Tue, 7 Oct 2025 21:12:13 +0000 (23:12 +0200)] 
[3.14] gh-105487: Fix `__dir__` entries of `GenericAlias` (GH-138578) (GH-138629)

(cherry picked from commit b0420b505e6c9bbc8418e0f6240835ea777137b5)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Emma Smith <emma@emmatyping.dev>
4 weeks ago[3.14] gh-138729: Cover `inspect.formatannotationrelativeto` with tests (GH-138730...
Miss Islington (bot) [Tue, 7 Oct 2025 21:10:49 +0000 (23:10 +0200)] 
[3.14] gh-138729: Cover `inspect.formatannotationrelativeto` with tests (GH-138730) (GH-138747)

(cherry picked from commit f5fa336579d124e389b1c36a5431e7908aaf5e53)

Co-authored-by: sobolevn <mail@sobolevn.me>
4 weeks ago[3.14] gh-138432: Improved invalid path checking in zoneinfo.reset_tzpath() (GH-13843...
Miss Islington (bot) [Tue, 7 Oct 2025 21:06:37 +0000 (23:06 +0200)] 
[3.14] gh-138432: Improved invalid path checking in zoneinfo.reset_tzpath() (GH-138433) (GH-138777)

* Improve error messages for path-like relative paths and path-like bytes paths.
* TZPATH is now always a tuple of strings.
(cherry picked from commit 859aecc33b82f45e5b7ae30138d28f2a2f33a575)

Co-authored-by: Stephen Morton <git@tungol.org>
4 weeks ago[3.14] gh-138239: Fix incorrect highlighting of "type" in type statements in the...
Miss Islington (bot) [Tue, 7 Oct 2025 21:02:32 +0000 (23:02 +0200)] 
[3.14] gh-138239: Fix incorrect highlighting of "type" in type statements in the REPL (GH-138241) (GH-138937)

(cherry picked from commit 26cfb1794255222b20cd7b502ab9193861df3184)

Co-authored-by: 00ll00 <40747228+00ll00@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
4 weeks ago[3.14] Touch up `Setup.local` handling in `Tools/wasm/wasi` (GH-137051) (GH-137053)
Miss Islington (bot) [Tue, 7 Oct 2025 20:58:53 +0000 (22:58 +0200)] 
[3.14] Touch up `Setup.local` handling in `Tools/wasm/wasi` (GH-137051) (GH-137053)

Touch up `Setup.local` handling in `Tools/wasm/wasi` (GH-137051)

The comment in the generated file is now more self-explanatory. The checks for unexpected file contents are also strengthened.
(cherry picked from commit ec7fad79d24e79961b86e17177a32b32bb340fe5)

Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Zachary Ware <zach@python.org>
4 weeks ago[3.14] gh-63161: Add more tests for source encoding (GH-139440) (GH-139442)
Miss Islington (bot) [Tue, 7 Oct 2025 20:51:14 +0000 (22:51 +0200)] 
[3.14] gh-63161: Add more tests for source encoding (GH-139440) (GH-139442)

(cherry picked from commit b2f5ad0c6d7cfd249c41bfbcdd0a75a9f21f1e72)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 weeks ago[3.14] gh-123441: Correct the supported languages of the iso-8859-4 codec (GH-137034...
Miss Islington (bot) [Tue, 7 Oct 2025 20:38:47 +0000 (22:38 +0200)] 
[3.14] gh-123441: Correct the supported languages of the iso-8859-4 codec (GH-137034) (GH-137419)

(cherry picked from commit 525784aa65d35a5609aba53c873a9a3a578f992b)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 weeks ago[3.14] Add test for opening an SQLite with bytes path (GH-136331) (GH-137632)
Miss Islington (bot) [Tue, 7 Oct 2025 20:35:06 +0000 (22:35 +0200)] 
[3.14] Add test for opening an SQLite with bytes path (GH-136331) (GH-137632)

(cherry picked from commit 1bde13b0e99592fbfce3538b27ada29ea09840a6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 weeks ago[3.14] gh-126008: Improve docstrings for Tkinter cget and configure methods (GH-13330...
Miss Islington (bot) [Tue, 7 Oct 2025 20:34:36 +0000 (22:34 +0200)] 
[3.14] gh-126008: Improve docstrings for Tkinter cget and configure methods (GH-133303) (GH-137660)

* Explain the behavior of Widget.configure() depending on arguments.
* Unify descriptions.
* Replace "resource" with "option".
(cherry picked from commit 027cacb67ce1b16a96a6a2866299803eff16a4a6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 weeks ago[3.14] gh-138264: Fix gcc 14 compiler warnings (GH-138265) (GH-138426)
Serhiy Storchaka [Tue, 7 Oct 2025 20:26:05 +0000 (23:26 +0300)] 
[3.14] gh-138264: Fix gcc 14 compiler warnings (GH-138265) (GH-138426)

(cherry picked from commit 4a33077fdb546db71b16d50cdd552529a9a1c910)

4 weeks ago[3.14] gh-137920: Fix semantically relevant typo in curses.window.attron (#137940...
Stan Ulbrych [Tue, 7 Oct 2025 20:21:41 +0000 (21:21 +0100)] 
[3.14] gh-137920: Fix semantically relevant typo in curses.window.attron (#137940) (GH-138506)

Originally authored by: vict-Yang

(cherry picked from commit ce70a57bc02fddc8cb18a08aaf1449fceb10d66e)

4 weeks ago[3.14] gh-134466: Don't run when termios is inaccessible (GH-138911) (GH-139029)
Miss Islington (bot) [Tue, 7 Oct 2025 20:15:56 +0000 (22:15 +0200)] 
[3.14] gh-134466: Don't run when termios is inaccessible (GH-138911) (GH-139029)

Without the ability to set required capabilities, the REPL cannot
function properly (syntax highlighting and multiline editing can't
work).
We refuse to work in this degraded state.

(cherry picked from commit 2fc7004d5437e7bb0a1f5b962be441ef0ee7434b)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 weeks ago[3.14] gh-78319: Fix implementation of IMAP APPEND UTF8 (GH-9436) (GH-139406)
Miss Islington (bot) [Tue, 7 Oct 2025 20:12:30 +0000 (22:12 +0200)] 
[3.14] gh-78319: Fix implementation of IMAP APPEND UTF8 (GH-9436) (GH-139406)

Make UTF8 support for the IMAP APPEND command RFC 6855 compliant.
(cherry picked from commit 408154d64a7b3d43b05f44ea5c4cdf781bdd1352)

Co-authored-by: Gordon Messmer <gordon.messmer@gmail.com>
4 weeks ago[3.14] gh-130567: Enable previously skipped locale tests on FreeBSD and macOS (GH...
Miss Islington (bot) [Tue, 7 Oct 2025 20:11:34 +0000 (22:11 +0200)] 
[3.14] gh-130567: Enable previously skipped locale tests on FreeBSD and macOS (GH-138652) (GH-139421)

(cherry picked from commit 1b8dcdacc75caa8175f89c7e739e45d856ebf511)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 weeks ago[3.14] gh-139076: Fix regression in pydoc not showing extension functions (GH-139077...
Miss Islington (bot) [Tue, 7 Oct 2025 19:57:28 +0000 (21:57 +0200)] 
[3.14] gh-139076: Fix regression in pydoc not showing extension functions (GH-139077) (GH-139160)

Fix a bug in the pydoc module that was hiding functions in a Python
module if they were implemented in an extension module and the module did
not have __all__.
(cherry picked from commit 7257b24140ac1b39fb8cfd4610134ec79575a396)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 weeks ago[3.14] Doc: Improve clarity for subinterpreters in What's New in 3.14 (GH-139221...
Miss Islington (bot) [Tue, 7 Oct 2025 19:55:52 +0000 (21:55 +0200)] 
[3.14] Doc: Improve clarity for subinterpreters in What's New in 3.14 (GH-139221) (GH-139722)

(cherry picked from commit 25edfa7cf1c0ddeaae2dd76ca6c18807b339257a)

Co-authored-by: Cornelius Roemer <cornelius.roemer@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
4 weeks ago[3.14] gh-130567: Fix possible crash in locale.strxfrm() (GH-138940) (GH-139265)
Miss Islington (bot) [Tue, 7 Oct 2025 19:54:04 +0000 (21:54 +0200)] 
[3.14] gh-130567: Fix possible crash in locale.strxfrm() (GH-138940) (GH-139265)

On some macOS versions there was an off-by-one error in wcsxfrm() which
caused writing past the end of the array if its size was not calculated
by running wcsxfrm() first.

(cherry picked from commit 5854cf38a25ab8b0c6ab0296098166014f77caa3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 weeks ago[3.14] gh-69605: Hardcode some stdlib submodules in PyREPL module completion (os...
Miss Islington (bot) [Tue, 7 Oct 2025 19:24:01 +0000 (21:24 +0200)] 
[3.14] gh-69605: Hardcode some stdlib submodules in PyREPL module completion (os.path, collections.abc...) (GH-138268) (GH-138943)

(cherry picked from commit 537133d2b63611ce1c04aac4c283c932dee9985a)

Co-authored-by: Loïc Simon <loic.simon@napta.io>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 weeks ago[3.14] gh-139283: correctly handle `size` limit in `cursor.fetchmany()` (GH-139296...
Miss Islington (bot) [Tue, 7 Oct 2025 19:23:08 +0000 (21:23 +0200)] 
[3.14] gh-139283: correctly handle `size` limit in `cursor.fetchmany()` (GH-139296) (GH-139441)

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.
(cherry picked from commit bc172ee8307431caf4c89612e9e454081635191f)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 weeks ago[3.14] gh-95844: Move help_url code to a help module function (GH-129971) (#138484)
Miss Islington (bot) [Tue, 7 Oct 2025 19:14:54 +0000 (21:14 +0200)] 
[3.14] gh-95844: Move help_url code to a help module function (GH-129971) (#138484)

gh-95844: Move help_url code to a help module function (GH-129971)

---------
(cherry picked from commit 3b4cd885634abc029b409cb566e8d9a530d061f8)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 weeks ago[3.14] gh-139210: Fix use-after-free in xml.etree.ElementTree.iterparse() (GH-139211...
Miss Islington (bot) [Tue, 7 Oct 2025 19:13:27 +0000 (21:13 +0200)] 
[3.14] gh-139210: Fix use-after-free in xml.etree.ElementTree.iterparse() (GH-139211) (GH-139455)

(cherry picked from commit c86eb4d3ac5984efc1ea920ba643e3c4f02fdee8)

Co-authored-by: Ken Jin <kenjin@python.org>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 weeks ago[3.14] gh-131178: Add tests for `site` command-line interface (GH-133582) (GH-137832)
Miss Islington (bot) [Tue, 7 Oct 2025 19:11:43 +0000 (21:11 +0200)] 
[3.14] gh-131178: Add tests for `site` command-line interface  (GH-133582) (GH-137832)

gh-131178: Add tests for `site` command-line interface  (GH-133582)
(cherry picked from commit 03f5519d776e28ffd0b8344ef328ecddf863fe0a)

Co-authored-by: ggqlq <124190229+ggqlq@users.noreply.github.com>
4 weeks ago[3.14] Always use the latest dev container image in `devcontainer.json` (GH-138003)
Brett Cannon [Tue, 7 Oct 2025 19:07:36 +0000 (12:07 -0700)] 
[3.14] Always use the latest dev container image in `devcontainer.json` (GH-138003)

This is a manual backport of 14319a99e52954d038d7568c5119be161a00a6b8 .

4 weeks ago[3.14] gh-138004: Fix setting a thread name on OpenIndiana (GH-138017) (#138384)
Miss Islington (bot) [Tue, 7 Oct 2025 18:58:35 +0000 (20:58 +0200)] 
[3.14] gh-138004: Fix setting a thread name on OpenIndiana (GH-138017) (#138384)

gh-138004: Fix setting a thread name on OpenIndiana (GH-138017)

Encode Solaris/Illumos thread names to ASCII, since
OpenIndiana does not support non-ASCII names.

Add tests for setting non-ASCII name for the main thread.
(cherry picked from commit c19db1d2b8935b6f4f775a0957a076f1864fbf80)

Co-authored-by: jadonduff <jadon_duff@icloud.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 weeks ago[3.14] gh-71648: Optimize PNG files (GH-138842) (GH-138851)
Stan Ulbrych [Tue, 7 Oct 2025 18:52:12 +0000 (19:52 +0100)] 
[3.14] gh-71648: Optimize PNG files (GH-138842) (GH-138851)

* Only keep > 1 kb savings
(cherry picked from commit 2e8f64c9317a327a2be1ab8031844ef3967c1040)

4 weeks ago[3.14] gh-116738: make `cProfile` module thread-safe (GH-138229) (#138575)
Miss Islington (bot) [Tue, 7 Oct 2025 18:51:22 +0000 (20:51 +0200)] 
[3.14] gh-116738: make `cProfile` module thread-safe (GH-138229) (#138575)

gh-116738: make `cProfile` module thread-safe (GH-138229)
(cherry picked from commit 8554c0917e25a7abe12b3000f1589b6566c91a25)

Co-authored-by: Alper <alperyoney@fb.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
4 weeks ago[3.14] gh-134698: Hold a lock when the thread state is detached in `ssl` (GH-134724...
Gregory P. Smith [Tue, 7 Oct 2025 18:49:22 +0000 (11:49 -0700)] 
[3.14] gh-134698: Hold a lock when the thread state is detached in `ssl` (GH-134724) (GH-137107)

* [3.14] gh-134698: Hold a lock when the thread state is detached in `ssl` (GH-134724)

Lock when the thread state is detached.
(cherry picked from commit e047a35b23c1aa69ab8d5da56f36319cec4d36b8)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
* Only lock the SSL context, not the SSL socket.

This solves a deadlock when a socket is blocked while waiting on data,
which ended up causing a major regression in 3.13.6 (see gh-137583).

---------

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
4 weeks ago[3.14] gh-137477: Fix inspect.getblock() for generator expressions (GH-137488) (...
Miss Islington (bot) [Tue, 7 Oct 2025 18:48:40 +0000 (20:48 +0200)] 
[3.14] gh-137477: Fix inspect.getblock() for generator expressions (GH-137488) (#137993)

gh-137477: Fix inspect.getblock() for generator expressions (GH-137488)

This fixes also inspect.getsourcelines() and inspect.getsource().
(cherry picked from commit eae9d7de1c45a64076a926d53672823e6ae1777d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 weeks ago[3.14] gh-136914: Fix support of cached functions and properties in DocTest's lineno...
Miss Islington (bot) [Tue, 7 Oct 2025 18:48:10 +0000 (20:48 +0200)] 
[3.14] gh-136914: Fix support of cached functions and properties in DocTest's lineno computation (GH-136930) (#137616)

gh-136914: Fix support of cached functions and properties in DocTest's lineno computation (GH-136930)

Previously, DocTest's lineno of functions and methods decorated with
functools.cache(), functools.lru_cache() and functools.cached_property()
was not properly returned (None was returned) because the
computation relied on inspect.isfunction() which does not consider the
decorated result as a function.

We now use the more generic inspect.isroutine(), as elsewhere
in doctest's logic.

Also, added a special case for functools.cached_property().
(cherry picked from commit fece15d29f28e89f1231afa80508c80ed28dc37d)

Co-authored-by: Denis Laxalde <denis@laxalde.org>
4 weeks ago[3.14] gh-137440: Update comment in Python/hamt.c on importing for testing (GH-137441...
Miss Islington (bot) [Tue, 7 Oct 2025 18:47:26 +0000 (20:47 +0200)] 
[3.14] gh-137440: Update comment in Python/hamt.c on importing for testing (GH-137441) (#137519)

gh-137440: Update comment in Python/hamt.c on importing for testing (GH-137441)

Switch from `_testcapi` to `_testinternalcapi`.
(cherry picked from commit 7ab68cd50658f76abc9e0f12e6212736e2440720)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
4 weeks ago[3.14] gh-137433: Fix deadlock with stop-the-world and daemon threads (gh-137735...
Miss Islington (bot) [Tue, 7 Oct 2025 18:46:52 +0000 (20:46 +0200)] 
[3.14] gh-137433: Fix deadlock with stop-the-world and daemon threads (gh-137735) (GH-138965)

There was a deadlock originally seen by Memray when a daemon thread
enabled or disabled profiling while the interpreter was shutting down.
I think this could also happen with garbage collection, but I haven't
seen that in practice.

The daemon thread could be hung while trying acquire the global rwmutex
that prevents overlapping global and per-interpreter stop-the-world events.
Since it already held the main interpreter's stop-the-world lock, it
also deadlocked the main thread, which is trying to perform interpreter
finalization.

Swap the order of lock acquisition to prevent this deadlock.
Additionally, refactor `_PyParkingLot_Park` so that the global buckets
hashtable is left in a clean state if the thread is hung in
`PyEval_AcquireThread`.

(cherry picked from commit 90fe3250f82712b61630d636246c92df7c40c816)

Co-authored-by: Sam Gross <colesbury@gmail.com>
4 weeks ago[3.14] GH-92266: Remove embedded tabs from ``c-analyzer/cpython/_parser.py`` (GH...
Miss Islington (bot) [Tue, 7 Oct 2025 18:45:49 +0000 (20:45 +0200)] 
[3.14] GH-92266: Remove embedded tabs from ``c-analyzer/cpython/_parser.py`` (GH-137622) (#139718)

GH-92266: Remove embedded tabs from ``c-analyzer/cpython/_parser.py`` (GH-137622)
(cherry picked from commit 2212ae5557d4ad9dfc792f728d2bf2697b063b92)

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