]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Mon, 13 Oct 2025 11:29:41 +0000 (13:29 +0200)]
[3.13] gh-107073: fix relevant typo in `PyObject_ClearManagedDict` (GH-140032) (#140034)
gh-107073: fix relevant typo in `PyObject_ClearManagedDict` (GH-140032)
(cherry picked from commit
52996aaa78706e0f2a70953feaf97b474eb438e7 )
Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
Miss Islington (bot) [Sun, 12 Oct 2025 16:56:03 +0000 (18:56 +0200)]
[3.13] gh-139155: Remove "dictionaries are sorted by key" note in `pprint` docs (GH-139159) (GH-140004)
gh-139155: Remove "dictionaries are sorted by key" note in `pprint` docs (GH-139159)
(cherry picked from commit
68622be935b36f0ca75729157992972dbf426603 )
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Miss Islington (bot) [Sat, 11 Oct 2025 18:35:24 +0000 (20:35 +0200)]
[3.13] gh-101100: Fix Sphinx warnings in `Doc/library/signal.rst` (GH-139930) (GH-139967)
gh-101100: Fix Sphinx warnings in `Doc/library/signal.rst` (GH-139930)
(cherry picked from commit
447c7a89fb41b7fa84b9b26f111aedd649bc5400 )
Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
Miss Islington (bot) [Sat, 11 Oct 2025 15:36:44 +0000 (17:36 +0200)]
[3.13] gh-139905: Provide suggestion in error message if `Generic.__init_subclass__` was not called (GH-139943) (#139956)
gh-139905: Provide suggestion in error message if `Generic.__init_subclass__` was not called (GH-139943)
(cherry picked from commit
5776d0d2e08f4d93dcd62d875bae8c1396a04ba4 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Sat, 11 Oct 2025 02:00:21 +0000 (04:00 +0200)]
[3.13] gh-96491: Deduplicate version in IDLE shell title (GH-139841) (#139932)
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>
Miss Islington (bot) [Fri, 10 Oct 2025 21:26:36 +0000 (23:26 +0200)]
[3.13] gh-139783: Fix inspect.getsourcelines() for the case when a decorator is followed by a comment or an empty line (GH-139836) (GH-139890)
(cherry picked from commit
f4104f5d74b99712253fceb39a4460ee3f7a281c )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 10 Oct 2025 19:31:50 +0000 (21:31 +0200)]
[3.13] gh-138843: Removing "Unpacking" section from Download page (GH-139920)
(cherry picked from commit
aa840f500ca901deea29669df68992193a273a62 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Stan Ulbrych [Fri, 10 Oct 2025 16:03:48 +0000 (17:03 +0100)]
[3.13] gh-101100: Document zlib public constants to fix reference warnings (GH-139835) (#139912)
* gh-101100: Document `zlib` public constants to fix reference warnings (#139835)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
(cherry picked from commit
c7f1da97eb4639a17fb01ef122155bab2f262a34 )
* [3.13] 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>
---------
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Fri, 10 Oct 2025 15:34:52 +0000 (17:34 +0200)]
[3.13] gh-139843: Document signals (SIGSTOP, SIGVTALRM, SIGPROF) to fix sphinx references (GH-139896) (GH-139909)
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>
Miss Islington (bot) [Fri, 10 Oct 2025 13:51:41 +0000 (15:51 +0200)]
[3.13] gh-139065: Fix trailing space before long word in textwrap (GH-139070) (GH-139903)
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>
Miss Islington (bot) [Fri, 10 Oct 2025 06:31:10 +0000 (08:31 +0200)]
[3.13] gh-139843: Document `signal.SIGQUIT` to fix Sphinx references (GH-139844) (#139886)
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>
Miss Islington (bot) [Thu, 9 Oct 2025 18:00:04 +0000 (20:00 +0200)]
[3.13] gh-139842: Clarify `__module__` description in typing.rst (GH-139863) (#139870)
Co-authored-by: Timothée Mazzucotelli <dev@pawamoy.fr>
Łukasz Langa [Thu, 9 Oct 2025 17:39:23 +0000 (18:39 +0100)]
[3.13] gh-139391: properly handle `signal.signal()` in `UnixConsole` when called from a non-main thread (GH-139392) (#139861)
(cherry picked from commit
b8c8b8f1d30767e5358ffa93d41e6e27ca60570d )
Co-authored-by: yihong <zouzou0208@gmail.com>
Miss Islington (bot) [Thu, 9 Oct 2025 17:22:01 +0000 (19:22 +0200)]
[3.13] gh-139672: Remove references to `passlib` (GH-139673) (#139868)
gh-139672: Remove references to `passlib` (GH-139673)
(cherry picked from commit
04461510fb8bedc054477c2634ffd0e575485b12 )
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Miss Islington (bot) [Thu, 9 Oct 2025 16:08:04 +0000 (18:08 +0200)]
[3.13] gh-139845: do not print twice in default asyncio REPL (GH-139846) (#139860)
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>
Sam Gross [Thu, 9 Oct 2025 15:42:47 +0000 (11:42 -0400)]
[3.13] gh-137400: Fix thread-safety issues when profiling all threads (gh-137518) (gh-137733)
There were a few thread-safety issues when profiling or tracing all
threads via PyEval_SetProfileAllThreads or PyEval_SetTraceAllThreads:
* The loop over thread states could crash if a thread exits concurrently
(in both the free threading and default build)
* The modification of `c_profilefunc` and `c_tracefunc` wasn't
thread-safe on the free threading build.
(cherry picked from commit
a10152f8fd0f4b291e53d646cffe22fbeec73e1e )
Łukasz Langa [Thu, 9 Oct 2025 15:38:10 +0000 (16:38 +0100)]
[3.13] gh-133400: Fixed Ctrl+D (^D) behavior in :mod:`_pyrepl` module (GH-133883) (GH-139851)
(cherry picked from commit
81959a0364f5bc15414d5bd61c5c0d019d486fe5 )
Co-authored-by: DeepWzh <wzh2012@outlook.com>
Co-authored-by: adam j hartz <adam@smatz.net>
Stan Ulbrych [Thu, 9 Oct 2025 15:20:34 +0000 (16:20 +0100)]
[3.13] gh-101100: Fix reference warnings in `c-api/init.rst` document… (#139833)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Thu, 9 Oct 2025 10:54:14 +0000 (12:54 +0200)]
[3.13] gh-75989: TarFile.extractall and TarFile.extract now overwrite symlinks when extracting hardlinks (GH-137316) (GH-139771)
(cherry picked from commit
481d5b54556e97fed4cf1f48a2ccbc7b4f7aaa42 )
Co-authored-by: Alexander Urieles <aeurielesn@users.noreply.github.com>
Miss Islington (bot) [Thu, 9 Oct 2025 08:24:06 +0000 (10:24 +0200)]
[3.13] gh-139743: Avoid import-time print in test_sqlite3 (GH-139746) (GH-139829)
(cherry picked from commit
65089406a54df6d3fdc65f5f7e7691ec5de088d8 )
Co-authored-by: Peter <peter86225@gmail.com>
Victor Stinner [Wed, 8 Oct 2025 23:24:30 +0000 (01:24 +0200)]
[3.13] gh-139748: Fix socket.if_nametoindex() Argument Clinic (#139815)
gh-139748: Fix socket.if_nametoindex() Argument Clinic
Fix a reference leak.
Miss Islington (bot) [Wed, 8 Oct 2025 22:57:30 +0000 (00:57 +0200)]
[3.13] gh-139805: Bump `test_repl_eio` timeout for slow builtbots (GH-139807) (#139813)
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>
Miss Islington (bot) [Wed, 8 Oct 2025 19:38:52 +0000 (21:38 +0200)]
[3.13] Remove Cirrus macOS runners from CI (GH-139799) (#139803)
Co-authored-by: Jacob Coffee <jacob@z7x.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Kumar Aditya [Wed, 8 Oct 2025 16:51:49 +0000 (22:21 +0530)]
[3.13] gh-139748: fix leaks in AC error paths when using unicode FS-b… (#139792)
* [3.13] 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>
Miss Islington (bot) [Wed, 8 Oct 2025 16:23:09 +0000 (18:23 +0200)]
[3.13] gh-138843: Clean up downloads page (GH-138844) (#139797)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Jacob Coffee [Wed, 8 Oct 2025 16:16:41 +0000 (12:16 -0400)]
[3.13] gh-137638: Use macos-15-intel in GitHub Actions (GH-139154) (#139790)
Co-authored-by: Jacob Coffee <jacob@z7x.org>
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Wed, 8 Oct 2025 15:23:17 +0000 (17:23 +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>
Savannah Ostrowski [Wed, 8 Oct 2025 15:10:25 +0000 (08:10 -0700)]
[3.13] GH-139590: Run `ruff format` on pre-commit for Tools/wasm (GH-139591) (#139745)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Wed, 8 Oct 2025 14:10:34 +0000 (16:10 +0200)]
[3.13] gh-139308: Skip test_special_chars_csh on NetBSD due to csh variable expansion issue (GH-139341) (#139560)
gh-139308: Skip test_special_chars_csh on NetBSD due to csh variable expansion issue (GH-139341)
Skip test_special_chars_csh on NetBSD due to csh variable expansion issue
(cherry picked from commit
ae6e7f572c18d9183cb23e6e53c3324dd9bf0c64 )
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Co-authored-by: Filipe Laíns 🇵🇸 <lains@riseup.net>
Miss Islington (bot) [Wed, 8 Oct 2025 13:56:23 +0000 (15:56 +0200)]
[3.13] gh-83424: Allow empty name if handle is non-null when create ctypes.CDLL on Windows (GH-136878) (#138547)
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>
Miss Islington (bot) [Wed, 8 Oct 2025 13:54:08 +0000 (15:54 +0200)]
[3.13] `Doc/library/zoneinfo.rst`: Fix typo (GH-139190) (#139230)
`Doc/library/zoneinfo.rst`: Fix typo (GH-139190)
Removes duplicated wording.
(cherry picked from commit
4fb338d844a1e992857a17b5bd1269837e847fb2 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Wed, 8 Oct 2025 13:53:35 +0000 (15:53 +0200)]
[3.13] gh-101100: Fix some Sphinx reference warnings in ``whatsnew/2.6.rst`` (GH-139236) (#139569)
gh-101100: Fix some Sphinx reference warnings in ``whatsnew/2.6.rst`` (GH-139236)
(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>
Miss Islington (bot) [Wed, 8 Oct 2025 13:52:15 +0000 (15:52 +0200)]
[3.13] gh-137589: Zipfile tests: close file objects (GH-138080) (#139767)
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>
Bénédikt Tran [Wed, 8 Oct 2025 10:32:45 +0000 (12:32 +0200)]
[3.13] gh-70765: avoid waiting for HTTP headers when parsing HTTP/0.9 requests (GH-139514) (#139602)
(cherry picked from commit
13dc2fde8cec1e8aad04c7635b3da4ff3e3dcb00 )
(cherry picked from commit
1fe89d324e6b96dc44a7bd593c428a90d1f39d55 )
Tomasz Pytel [Tue, 7 Oct 2025 22:15:57 +0000 (18:15 -0400)]
[3.13] gh-139516: Fix lambda colon start format spec in f-string in t… (#139726)
[3.13] gh-139516: Fix lambda colon start format spec in f-string in tokenizer (GH-139657)
(cherry picked from commit
539461d9ec8e5322ead638f7be733fd196aa6c79 )
Miss Islington (bot) [Tue, 7 Oct 2025 20:33:20 +0000 (22:33 +0200)]
[3.13] Update the availability info in the resource docs (GH-137939) (GH-139720)
(cherry picked from commit
b4d8faa22142cde789388068d0230b9ffdd95eac )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Stan Ulbrych [Tue, 7 Oct 2025 20:22:18 +0000 (21:22 +0100)]
[3.13] gh-137920: Fix semantically relevant typo in `curses.window.attron` (GH-137940) (GH-138507)
Originally authored by: vict-Yang
(cherry picked from commit
ce70a57bc02fddc8cb18a08aaf1449fceb10d66e )
Miss Islington (bot) [Tue, 7 Oct 2025 18:19:24 +0000 (20:19 +0200)]
[3.13] gh-139646: fix typo in `pickletools` error message (GH-139647) (GH-139650)
(cherry picked from commit
36a6c2cdfaddc4a82d14f2c84b04e05089802876 )
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: yihong <zouzou0208@gmail.com>
Miss Islington (bot) [Tue, 7 Oct 2025 18:12:31 +0000 (20:12 +0200)]
[3.13] gh-139436: Remove ``dist-pdf`` from the docs archives rebuild target (GH-139437) (#139693)
gh-139436: Remove ``dist-pdf`` from the docs archives rebuild target (GH-139437)
(cherry picked from commit
0e2cdd313ba5c67c5e2e21d993399b890e687c63 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Tue, 7 Oct 2025 17:57:57 +0000 (19:57 +0200)]
[3.13] gh-136234: Fix `SelectorSocketTransport.writelines` to be robust to connection loss (GH-136743) (GH-138702) (#139710)
[3.14] gh-136234: Fix `SelectorSocketTransport.writelines` to be robust to connection loss (GH-136743) (GH-138702)
(cherry picked from commit
5cd6cfe4cf6770b9424bb23f8c7c661f7a3db7b0 )
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Serhiy Storchaka [Tue, 7 Oct 2025 17:55:44 +0000 (20:55 +0300)]
[3.13] gh-139700: Check consistency of the zip64 end of central directory record (GH-139702) (GH-139708)
Support records with "zip64 extensible data" if there are no bytes
prepended to the ZIP file.
(cherry picked from commit
162997bb70e067668c039700141770687bc8f267 )
Thomas Wouters [Tue, 7 Oct 2025 14:04:40 +0000 (16:04 +0200)]
Post 3.13.8
Thomas Wouters [Tue, 7 Oct 2025 12:01:38 +0000 (14:01 +0200)]
Python 3.13.8
Miss Islington (bot) [Tue, 7 Oct 2025 11:34:51 +0000 (13:34 +0200)]
[3.13] gh-139436: Remove link to the PDF downloads (GH-139142) (#139427)
(cherry picked from commit
6b5f15698a436591f7c305c576a2d366c38d9997 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Tue, 7 Oct 2025 11:34:08 +0000 (13:34 +0200)]
[3.13] gh-63161: Add more tests for source encoding (GH-139440) (#139443)
(cherry picked from commit
b2f5ad0c6d7cfd249c41bfbcdd0a75a9f21f1e72 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Bénédikt Tran [Tue, 7 Oct 2025 11:33:40 +0000 (13:33 +0200)]
[3.13] gh-139283: correctly handle `size` limit in `cursor.fetchmany()` (GH-139296) (#139444)
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 )
Miss Islington (bot) [Tue, 7 Oct 2025 11:32:51 +0000 (13:32 +0200)]
[3.13] gh-139327: fix some reference leaks in `sqlite3` error branches (GH-139328) (#139472)
(cherry picked from commit
d0a3eff9d6e72e209da0236fb1ea1f8c18938eaa )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Tue, 7 Oct 2025 05:18:49 +0000 (07:18 +0200)]
[3.13] gh-124111: Update macOS installer to use Tcl/Tk 8.6.17. (GH-139682) (#139684)
(cherry picked from commit
6d804e4efb8ed2ebeb9cef9577945c46c0038178 )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Tue, 7 Oct 2025 03:41:39 +0000 (05:41 +0200)]
[3.13] gh-139573: Update macOS installer to use OpenSSL 3.0.18 (GH-139575) (#139681)
Co-authored-by: Zachary Ware <zach@python.org>
Jost Migenda [Mon, 6 Oct 2025 21:28:57 +0000 (22:28 +0100)]
[3.13] gh-118767: remove bool(NotImplemented) from pending-removal document (GH-139526) (#139677)
Miss Islington (bot) [Mon, 6 Oct 2025 18:05:07 +0000 (20:05 +0200)]
[3.13] gh-138854: Skip test_script_shadowing_stdlib_cwd_failure on AIX (GH-138855) (GH-139675)
gh-138854: Skip test_script_shadowing_stdlib_cwd_failure on AIX (GH-138855)
(cherry picked from commit
171f787a297ec4b02cfe8b3ebab8374018391f20 )
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Miss Islington (bot) [Mon, 6 Oct 2025 17:13:08 +0000 (19:13 +0200)]
[3.13] gh-133210: Fix `test_inspect` without docstrings (GH-139651) (#139670)
gh-133210: Fix `test_inspect` without docstrings (GH-139651)
(cherry picked from commit
7c70cc5c23971ef448ea59827c6e6ae310157356 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Mon, 6 Oct 2025 15:14:04 +0000 (17:14 +0200)]
[3.13] gh-133210: Fix `test_pydoc` without docstrings (GH-139654) (#139666)
gh-133210: Fix `test_pydoc` without docstrings (GH-139654)
(cherry picked from commit
708de26e31b65cd3ae768882c8da59284917a80d )
Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
Sebastian Pipping [Mon, 6 Oct 2025 13:17:37 +0000 (15:17 +0200)]
[3.13] gh-139400: Make sure that parent parsers outlive their subparsers in `pyexpat` (GH-139403) (GH-139608)
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.
(cherry picked from commit
6edb2ddb5f3695cf4938979d645f31d7fba43ec8 )
Miss Islington (bot) [Mon, 6 Oct 2025 13:11:49 +0000 (15:11 +0200)]
[3.13] gh-116488: Mention `dict.get` in the data structures tutorial (GH-139643) (GH-139656)
gh-116488: Mention `dict.get` in the data structures tutorial (GH-139643)
(cherry picked from commit
69cfad0b3e1e2805914cb647cce4c7c2bfed5910 )
Co-authored-by: Cycloctane <Cycloctane@outlook.com>
Miss Islington (bot) [Mon, 6 Oct 2025 10:49:50 +0000 (12:49 +0200)]
[3.13] gh-139624: Skip problematic locales on AIX in test_date_locale2 (GH-139625) (GH-139645)
(cherry picked from commit
6f3dae0dc5ccd47b2b8a6e052244353d8c37e59b )
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Miss Islington (bot) [Mon, 6 Oct 2025 06:25:58 +0000 (08:25 +0200)]
[3.13] gh-137242: Allow Android testbed to take all Python command-line options (GH-138805) (#139638)
Modifies the Android test runner to ensure that all valid Python command line
options are preserved when running the test suite.
(cherry picked from commit
a9b0506d8db1aff8318759ed9324be56bf33eb31 )
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Adam Turner [Sun, 5 Oct 2025 20:28:30 +0000 (21:28 +0100)]
[3.13] gh-105812: Use the ``:deco:`` role in place of manual decorator markup (GH-139619) (#139628)
Miss Islington (bot) [Sun, 5 Oct 2025 17:18:11 +0000 (19:18 +0200)]
[3.13] Replace ambiguous word "pound" by "hash" in `difflib` docs (GH-139601) (#139617)
Replace ambiguous word "pound" by "hash" in `difflib` docs (GH-139601)
(cherry picked from commit
dadbb2662a405a34763db0298025f6af06342849 )
Co-authored-by: George Ogden <38294960+George-Ogden@users.noreply.github.com>
Miss Islington (bot) [Sun, 5 Oct 2025 08:52:06 +0000 (10:52 +0200)]
[3.13] gh-139310: skip `test_aead_aes_gcm` for Linux kernel between 6.16.0 and 6.17.x (GH-139552) (#139593)
gh-139310: skip `test_aead_aes_gcm` for Linux kernel between 6.16.0 and 6.17.x (GH-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
(cherry picked from commit
41712c4e095b2cc988febfe3887616c2779c6210 )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Sun, 5 Oct 2025 01:53:16 +0000 (03:53 +0200)]
[3.13] gh-139573: Update Windows builds to use OpenSSL 3.0.18 (GH-139587)
(cherry picked from commit
063cef9999d7490e62cb2ad2711634a992c090fb )
Zachary Ware [Sun, 5 Oct 2025 01:52:08 +0000 (20:52 -0500)]
[3.13] gh-139573: Update OpenSSL in CI (GH-139585)
(cherry picked from commit
98e748b3a0d97bd2c785efc63693f971113b3b63 )
Russell Keith-Magee [Sun, 5 Oct 2025 01:16:05 +0000 (09:16 +0800)]
[3.13] gh-139573: Update Android to OpenSSL 3.0.18 (GH-139562) (#139584)
Update Android to OpenSSL 3.0.18.
(cherry picked from commit
0f0fc5a16368ea45541137cff6b90d63bad5eb26 )
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Miss Islington (bot) [Sat, 4 Oct 2025 16:42:03 +0000 (18:42 +0200)]
[3.13] gh-138703: clarify data buffer requirement of `asyncio.StreamWriter.write` (GH-139564) (#139571)
gh-138703: clarify data buffer requirement of `asyncio.StreamWriter.write` (GH-139564)
(cherry picked from commit
0b2168275e8ec491fe7ea6f8c662e804437dfdab )
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Alex Willmer [Fri, 3 Oct 2025 00:17:55 +0000 (01:17 +0100)]
[3.13] gh-139495: Fix `hashlib.file_digest()` versionchanged description of `BlockingIOError` (GH-139496) (#139528)
* 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
(cherry picked from commit
fb114cf49742a3679d56aa4ac3f341839c641221 )
Victor Stinner [Thu, 2 Oct 2025 15:08:42 +0000 (17:08 +0200)]
[3.13] gh-135329: Use longer timeout in pyrepl test_repl_eio() (#139503) (#139507)
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
(cherry picked from commit
c985822d86892cd0a978e6e63945be3c0e59217c )
Miss Islington (bot) [Thu, 2 Oct 2025 12:43:33 +0000 (14:43 +0200)]
[3.13] gh-139487: add missing imports for standalone doctest `Enum` examples (GH-139488) (#139494)
gh-139487: add missing imports for standalone doctest `Enum` examples (GH-139488)
(cherry picked from commit
f3d7faeafa9618b38980813f22d0a64f7b2bd441 )
Co-authored-by: Peter <35064951+ttw225@users.noreply.github.com>
Miss Islington (bot) [Wed, 1 Oct 2025 08:59:48 +0000 (10:59 +0200)]
[3.13] gh-139210: Move gh-139210 patch NEWS file to correct section (GH-139469) (GH-139470)
(cherry picked from commit
d936dbeb1f1ebb4291a035dae88be78722c51d34 )
Co-authored-by: Ken Jin <kenjin@python.org>
Miss Islington (bot) [Wed, 1 Oct 2025 05:56:39 +0000 (07:56 +0200)]
[3.13] Document that `PyInterpreterState_GetDict` returns a borrowed reference (GH-139451) (#139464)
Document that `PyInterpreterState_GetDict` returns a borrowed reference (GH-139451)
(cherry picked from commit
80cdf3ef74f6622899c1c82af1e08492e4ab7a00 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Tue, 30 Sep 2025 18:14:44 +0000 (20:14 +0200)]
[3.13] gh-139210: Fix use-after-free in xml.etree.ElementTree.iterparse() (GH-139211) (GH-139456)
(cherry picked from commit
c86eb4d3ac5984efc1ea920ba643e3c4f02fdee8 )
Co-authored-by: Ken Jin <kenjin@python.org>
Miss Islington (bot) [Tue, 30 Sep 2025 15:53:45 +0000 (17:53 +0200)]
[3.13] gh-130567: Enable previously skipped locale tests on FreeBSD and macOS (GH-138652) (GH-139422)
(cherry picked from commit
1b8dcdacc75caa8175f89c7e739e45d856ebf511 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 29 Sep 2025 11:03:01 +0000 (13:03 +0200)]
[3.13] gh-139146: Check `calloc()` results in `_testembed.c::test_pre_initialization_sys_options` (GH-139147) (#139414)
gh-139146: Check `calloc()` results in `_testembed.c::test_pre_initialization_sys_options` (GH-139147)
(cherry picked from commit
9c6a1f847b648747414600f2cde18f3837505537 )
Reported by: Dmitrii Chuprov <cheese@altlinux.org>
Signed-off-by: Denis Sergeev <zeff@altlinux.org>
Co-authored-by: Denis Sergeev <zeff@altlinux.org>
Miss Islington (bot) [Mon, 29 Sep 2025 06:25:51 +0000 (08:25 +0200)]
[3.13] gh-78319: Fix implementation of IMAP APPEND UTF8 (GH-9436) (GH-139407)
gh-78319: Fix implementation of IMAP APPEND UTF8 (GH-9436)
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>
Miss Islington (bot) [Sat, 27 Sep 2025 08:19:09 +0000 (10:19 +0200)]
[3.13] gh-139312: Update bundled libexpat to 2.7.3 (GH-139319) (#139377)
gh-139312: Update bundled libexpat to 2.7.3 (GH-139319)
+ Blurb
+ Update sbom.spdx.json
(cherry picked from commit
48d0d0dd9733eae4935f2ebd31bef786d8074fc8 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Tian Gao [Fri, 26 Sep 2025 14:50:33 +0000 (22:50 +0800)]
[3.13] gh-139289: Lazy import rlcompleter to fix the refleak (GH-139305) (#139357)
(cherry picked from commit
8288f3693f50058ad9b9fe04e01f5dad902d8bad )
Rafael Fontenelle [Fri, 26 Sep 2025 11:36:01 +0000 (08:36 -0300)]
[3.13] Remove erroneous text from What’s New (#139343)
Miss Islington (bot) [Fri, 26 Sep 2025 11:27:57 +0000 (13:27 +0200)]
[3.13] gh-115119: Defer `--with-system-libmpdec` removal to 3.16 (GH-139318) (#139348)
gh-115119: Defer `--with-system-libmpdec` removal to 3.16 (GH-139318)
(cherry picked from commit
0aab07ccf79f335e3afa8021ddcbcfb8afa4d70c )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Fri, 26 Sep 2025 10:08:59 +0000 (12:08 +0200)]
[3.13] gh-127502: Fix typo in XML security notes (GH-139335) (#139345)
gh-127502: Fix typo in XML security notes (GH-139335)
(cherry picked from commit
6fa1e552e06063b668e02540ba1c31a4d87bbb17 )
Co-authored-by: Sebastian Pipping <sebastian@pipping.org>
Miss Islington (bot) [Thu, 25 Sep 2025 18:05:09 +0000 (20:05 +0200)]
[3.13] gh-139330: Check expat version/checksum in SBOM with refresh.sh
gh-139330: Check expat version/checksum in SBOM with refresh.sh
Check expat version/checksum in SBOM with refresh.sh
(cherry picked from commit
89b5571025a5316ea3855c8e595a5f3c3ae11f8f )
Co-authored-by: Seth Michael Larson <seth@python.org>
Miss Islington (bot) [Wed, 24 Sep 2025 11:48:08 +0000 (13:48 +0200)]
[3.13] gh-130567: Fix possible crash in locale.strxfrm() (GH-138940) (GH-139266)
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>
Karolina Surma [Wed, 24 Sep 2025 08:36:37 +0000 (10:36 +0200)]
[3.13] Fix the reference to unicode specification (#139138) (#139285)
(cherry picked from commit
b36dee855dd61f6ac37208866c3c4c21429a587a )
Tian Gao [Wed, 24 Sep 2025 06:07:50 +0000 (14:07 +0800)]
[3.13] gh-138860: Lazy import rlcompleter in pdb to avoid deadlock in… (#139281)
[3.13] gh-138860: Lazy import rlcompleter in pdb to avoid deadlock in subprocess (GH-139185)
(cherry picked from commit
c8624cd36746b17d8f991cde63705e9419e940de )
Miss Islington (bot) [Tue, 23 Sep 2025 14:32:19 +0000 (16:32 +0200)]
[3.13] gh-139208: Fix regrtest --fast-ci --verbose (GH-139240) (#139261)
gh-139208: Fix regrtest --fast-ci --verbose (GH-139240)
Don't ignore the --verbose option anymore.
(cherry picked from commit
dd683f8f341dd0c95ac4f1363d92d141ea5b3842 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Eloisa Perez-Bennetts [Mon, 22 Sep 2025 14:18:11 +0000 (16:18 +0200)]
[3.13] Revert "gh-136006: fix `Py_NAN` expansion on Solaris systems (GH-136575) (#138734)" (#139239)
This reverts commit
df349036b3f912e539643d91b84cbce32e4a1051 as discussed in https://github.com/python/cpython/pull/138733#issuecomment-
3317818806
Miss Islington (bot) [Sun, 21 Sep 2025 19:05:42 +0000 (21:05 +0200)]
[3.13] `Doc/library/os.rst`: Remove spurious parenthesis (GH-139205) (GH-139218)
`Doc/library/os.rst`: Remove spurious parenthesis (GH-139205)
(cherry picked from commit
9c3d09b984374292d1d8552f53c98f445f8556dd )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Sun, 21 Sep 2025 11:05:10 +0000 (13:05 +0200)]
[3.13] gh-138092: Correct the documented signature of ``mmap.flush`` (GH-138671) (#139203)
Miss Islington (bot) [Sun, 21 Sep 2025 10:58:06 +0000 (12:58 +0200)]
[3.13] Make sure the ``:keyword:`` role works for ``case`` (GH-138878) (#139201)
Alex Waygood [Fri, 19 Sep 2025 17:51:39 +0000 (18:51 +0100)]
[3.13] gh-118803: Fixup a few references in the 3.13 branch to the intended removal date for `ByteString` (#139171)
Peter Bierma [Fri, 19 Sep 2025 15:09:44 +0000 (11:09 -0400)]
[3.13] gh-112729: Correctly fail when the process is out of memory during interpreter creation (GH-139164) (GH-139169)
* gh-112729: Correctly fail when the process is out of memory during interpreter creation (GH-139164)
(cherry picked from commit
d06113c7a7cac76a28847702685e601b79f71bf8 )
Miss Islington (bot) [Fri, 19 Sep 2025 13:38:20 +0000 (15:38 +0200)]
[3.13] gh-139076: Fix regression in pydoc not showing extension functions (GH-139077) (GH-139161)
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>
Alex Waygood [Thu, 18 Sep 2025 18:35:30 +0000 (19:35 +0100)]
[3.13] gh-118803: Improve documentation around `ByteString` deprecation (#139115) (#139137)
Miss Islington (bot) [Thu, 18 Sep 2025 13:37:39 +0000 (15:37 +0200)]
[3.13] gh-82916: Don't fail when importing from / with sys.pycache_prefix set (GH-30456) (GH-137905)
(cherry picked from commit
d8a9466e29f59f81aacf1959b835862bcd47b731 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Thu, 18 Sep 2025 12:17:06 +0000 (14:17 +0200)]
[3.13] Document `Py_AddPendingCall()` change with subinterpreters in 3.12 (GH-139117) (GH-139119)
Document `Py_AddPendingCall()` change with subinterpreters in 3.12 (GH-139117)
Prior to 3.9, Py_AddPendingCall() would always run pending calls in the main interpreter, but then each interpreter got their own ceval state, and they were scheduled for any interpreter. In GH-104813, this was undone, so Py_AddPendingCall() would always schedule for the main interpreter.
(cherry picked from commit
89ff88be89328964dbc50a474a84c566fe920b46 )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Bénédikt Tran [Thu, 18 Sep 2025 12:07:06 +0000 (14:07 +0200)]
[3.13] gh-138633: synchronize documented signatures of SSL objects with runtime ones (GH-138639, GH-138648) (#138647)
(cherry picked from commit
4dd36f3a38496494ff64ee8315a1589490bb472a )
(cherry picked from commit
4ef51fa75c17d4f027f2b73ff92be7a8b53eeb4f )
Miss Islington (bot) [Thu, 18 Sep 2025 12:02:17 +0000 (14:02 +0200)]
[3.13] gh-137376: Add note on top-level `global` declarations (GH-137707) (#138022)
(cherry picked from commit
9f05f98730bbc36f4ad173845458827c4df879f6 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
Bénédikt Tran [Thu, 18 Sep 2025 11:47:12 +0000 (13:47 +0200)]
[3.13] gh-136006: fix `Py_NAN` expansion on Solaris systems (GH-136575) (#138734)
On Solaris, `Py_NAN` may expand as a function address instead of a floating-point number.
This amends commit
7a3b03509e5e3e72d8c47137579cccb52548a318 .
(cherry picked from commit
d54b1091d43b9d8f0da0ba081565bccca3f138fd )
Petr Viktorin [Thu, 18 Sep 2025 11:46:05 +0000 (13:46 +0200)]
[3.13] gh-138008: Fix segfaults in _ctypes due to invalid argtypes (GH-138285) (#138746)
(cherry picked from commit
1ce05537a3ebaf1e5c54505b2272d61bb6cf5de0 )
Signed-off-by: Nguyen Viet Dung <29406816+magnified103@users.noreply.github.com>
Signed-off-by: Nguyen Viet Dung <dung@ekluster.com>
Co-authored-by: Dung Nguyen <dung@ekluster.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Yongzi Li <204532581+Yzi-Li@users.noreply.github.com>
Miss Islington (bot) [Thu, 18 Sep 2025 11:45:03 +0000 (13:45 +0200)]
[3.13] Make Android streams respect the unbuffered (`-u`) option (GH-138806) (#139110)
Android pipes stdout/stderr to the log, which means every write to the log
becomes a separate log line. As a result, most practical uses of stdout/stderr
should be buffered; but it doesn't hurt to preserve unbuffered handling in case
it's useful.
(cherry picked from commit
0ac377ff23672ae7e2451f4cdfbe37c4efd464e7 )
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Miss Islington (bot) [Thu, 18 Sep 2025 11:43:24 +0000 (13:43 +0200)]
[3.13] gh-138871: Clarify NameError exception in 'del' (GH-138881) (#138904)
(cherry picked from commit
481588ad4ccd2aff7ca3bac43379da0ce3b1c6d5 )
Co-authored-by: Kian Eliasi <kian.elbo@gmail.com>
Miss Islington (bot) [Thu, 18 Sep 2025 11:42:42 +0000 (13:42 +0200)]
[3.13] gh-138998: Upgrade vendored expat to 2.7.2 (GH-138999) (#139025)
(cherry picked from commit
64c876dd6812ade19cb7a0c619111d30f0b2b860 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>