]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Tue, 15 Jul 2025 08:12:45 +0000 (10:12 +0200)]
[3.14] gh-131189: Fix "msvcrt" import warning on Linux when "_ctypes" is not available. (GH-131201) (GH-136668)
Fix "msvcrt" import warning on Linux when "_ctypes" is not available.
On Linux, compiling without "libffi" causes a
"No module named 'msvcrt'" warning when launching PyREPL.
(cherry picked from commit
f320c951c3220aa6727b581216463e8b3f8bcd6b )
Co-authored-by: Dzmitry Plashchynski <plashchynski@gmail.com>
Miss Islington (bot) [Tue, 15 Jul 2025 05:36:47 +0000 (07:36 +0200)]
[3.14] gh-136663: fix signatures of PyFloat_Pack/Unpack in docs (GH-136664) (#136666)
gh-136663: fix signatures of PyFloat_Pack/Unpack in docs (GH-136664)
(cherry picked from commit
e4654e0b3e7d802c8fe984cf39a36a42b67de1ad )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Miss Islington (bot) [Tue, 15 Jul 2025 05:33:33 +0000 (07:33 +0200)]
[3.14] gh-116738: Make grp module thread-safe (GH-135434) (#136658)
gh-116738: Make grp module thread-safe (GH-135434)
Make grp module methods getgrgid() and getgrnam() thread-safe when the GIL is disabled and getgrgid_r()/getgrnam_r() C APIs are not available.
---------
(cherry picked from commit
9363703bd3bf86e363c14a02e3d729caf1e29f44 )
Co-authored-by: Alper <alperyoney@fb.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Miss Islington (bot) [Mon, 14 Jul 2025 10:19:23 +0000 (12:19 +0200)]
[3.14] Partially revert "gh-101100: Fix sphinx warnings in `library/email.parser.rst` (GH-136475)" (GH-136629) (#136646)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Mon, 14 Jul 2025 02:49:36 +0000 (04:49 +0200)]
[3.14] gh-127146: Emscripten: Fix test_open_undecodable_uri by setting `-sTEXTDECODER=2` (GH-136624) (#136631)
Removes the JS text decoder fallback and gets rid of the bugs due to the differences
in behavior on invalid utf8 strings. See https://github.com/emscripten-core/emscripten/issues/24690.
(cherry picked from commit
283b05052338dd735cd4927011afc3735d9c6c7c )
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Miss Islington (bot) [Sun, 13 Jul 2025 20:52:02 +0000 (22:52 +0200)]
[3.14] gh-135256: Simplify parsing parameters in Argument Clinic (GH-135257) (
121914136635 )
(cherry picked from commit
b74fb8e220a50a9580320dfd398a16995b845c69 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 13 Jul 2025 13:58:03 +0000 (15:58 +0200)]
[3.14] gh-127971: fix off-by-one read beyond the end of a string during search (GH-132574) (#136628)
gh-127971: fix off-by-one read beyond the end of a string during search (GH-132574)
(cherry picked from commit
85ec3b3b503ffd5b7e45f8b3fa2cec0c10e4bef0 )
Co-authored-by: Duane Griffin <duaneg@dghda.com>
Miss Islington (bot) [Sun, 13 Jul 2025 13:19:23 +0000 (15:19 +0200)]
[3.14] gh-42237: Link to complete list of codec aliases (GH-136625) (#136626)
gh-42237: Link to complete list of codec aliases (GH-136625)
Closes GH-42237
(cherry picked from commit
a93d9aaf62bb2565e9eec00a2a8d06a91305127b )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Sun, 13 Jul 2025 09:17:48 +0000 (11:17 +0200)]
[3.14] gh-132346: Docs: Clarify that reference counts aren't stable between versions (GH-132352) (GH-136613)
gh-132346: Docs: Clarify that reference counts aren't stable between versions (GH-132352)
(cherry picked from commit
3dbe02ccd3eefc48ac9fa14427bb4cdb82d1ebae )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Miss Islington (bot) [Sun, 13 Jul 2025 06:58:45 +0000 (08:58 +0200)]
[3.14] gh-134833: improve docs for `del s[i:j]` in `Mutable Sequence Types` (GH-134834) (#136608)
gh-134833: improve docs for `del s[i:j]` in `Mutable Sequence Types` (GH-134834)
(cherry picked from commit
609d5adc7cc241da8fe314a64ddd2c8a883ee8b7 )
Co-authored-by: Yongzi Li <204532581+Yzi-Li@users.noreply.github.com>
Miss Islington (bot) [Sun, 13 Jul 2025 06:52:58 +0000 (08:52 +0200)]
[3.14] Docs: Fix and improve the `PyUnstable_Object_EnableDeferredRefcount` documentation (GH-135323) (GH-136610)
Docs: Fix and improve the `PyUnstable_Object_EnableDeferredRefcount` documentation (GH-135323)
(cherry picked from commit
0d4fd10fbab2767fad3eb27639905c8885b88c89 )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Miss Islington (bot) [Sun, 13 Jul 2025 05:42:51 +0000 (07:42 +0200)]
[3.14] gh-134939: Correct `concurrent.interpreters` source code link (GH-136564) (#136605)
gh-134939: Correct `concurrent.interpreters` source code link (GH-136564)
(cherry picked from commit
42b251bcebd749eceeb62389e413a3be37cff343 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Sat, 12 Jul 2025 18:22:51 +0000 (20:22 +0200)]
[3.14] gh-101100: Fix sphinx warnings in Doc/library/platform.rst (GH-136562) (GH-136597)
(cherry picked from commit
47b01da4ccedd9c00fad4325b3e87d7732abeb6d )
Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
Miss Islington (bot) [Sat, 12 Jul 2025 16:18:23 +0000 (18:18 +0200)]
[3.14] gh-136549: Fix signature of threading.excepthook() (GH-136559) (GH-136589)
(cherry picked from commit
be2c3d284ecce67474a260b8c37e2f1e0628a9cf )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 12 Jul 2025 14:38:57 +0000 (16:38 +0200)]
[3.14] gh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)` when `ind.__index__` has side-effects (GH-132379) (#136581)
gh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)` when `ind.__index__` has side-effects (GH-132379)
(cherry picked from commit
5e1e21dee35b8e9066692d08033bbbdb562e2c28 )
Co-authored-by: Bast <52266665+bast0006@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Sat, 12 Jul 2025 13:56:10 +0000 (15:56 +0200)]
[3.14] gh-134759: fix `UnboundLocalError` in `email.message.Message.get_payload` (GH-136071) (#136579)
gh-134759: fix `UnboundLocalError` in `email.message.Message.get_payload` (GH-136071)
(cherry picked from commit
25335d297b5248922a4c82183bcdf0c0ada8352b )
Co-authored-by: Kliment Lamonov <klimentlamonov@yandex.ru>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Sat, 12 Jul 2025 12:33:53 +0000 (14:33 +0200)]
[3.14] gh-89083: Add CLI tests for `UUIDv{6,7,8}` (GH-136548) (#136576)
gh-89083: Add CLI tests for `UUIDv{6,7,8}` (GH-136548)
(cherry picked from commit
c564847e98db462edfc30a971da061eeb775e475 )
Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Fri, 11 Jul 2025 17:09:22 +0000 (19:09 +0200)]
[3.14] gh-101100: Fix sphinx warnings in Doc/library/functools.rst (GH-136424) (GH-136552)
Add index entries and anchors for cache_info, cache_clear and register.
(cherry picked from commit
252e2f710ea376a38c4545dd758e03d331c1eaad )
Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
Miss Islington (bot) [Fri, 11 Jul 2025 17:03:11 +0000 (19:03 +0200)]
[3.14] gh-130160: use `.. program::` directive for documenting `venv` CLI (GH-130699) (#136550)
gh-130160: use `.. program::` directive for documenting `venv` CLI (GH-130699)
(cherry picked from commit
fb9f933b8eda6cdc1336582dc8709b759ced91af )
Co-authored-by: Kanishk Pachauri <itskanishkp.py@gmail.com>
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Fri, 11 Jul 2025 16:25:58 +0000 (18:25 +0200)]
[3.14] gh-130478: fix HACL* build for macOS Silicon (GH-134188) (#135009)
gh-130478: fix HACL* build for macOS Silicon (GH-134188)
(cherry picked from commit
ac7511062bf8e16ad489b17990d99abd3b4351f5 )
Co-authored-by: Sam Ng <hongsheng@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Fri, 11 Jul 2025 14:20:05 +0000 (16:20 +0200)]
[3.14] gh-136517: Print uncollectable objects if DEBUG_UNCOLLECTABLE mode was set (GH-136518) (#136522)
gh-136517: Print uncollectable objects if DEBUG_UNCOLLECTABLE mode was set (GH-136518)
(cherry picked from commit
c560df9658f1a24edea995fe6f9c84c55b37cfb3 )
Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
Miss Islington (bot) [Fri, 11 Jul 2025 14:06:19 +0000 (16:06 +0200)]
[3.14] gh-136541: Fix several problems of perf trampolines in x86_64 and aarch64 (GH-136500) (#136544)
gh-136541: Fix several problems of perf trampolines in x86_64 and aarch64 (GH-136500)
This commit fixes the following problems:
* The x86_64 trampolines are not preserving frame pointers
* The hardcoded offsets to the code segment from the FDE only worked properly for x64_64
* The CIE data was not following conventions of aarch64
* The eh_frame for aarch64 was not fully correct
(cherry picked from commit
236f733d8ffb3d587e1167fa0a0248c24512e7fd )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Fri, 11 Jul 2025 12:57:52 +0000 (14:57 +0200)]
[3.14] gh-136434: Fix docs generation of `UnboundItem` in subinterpreters (GH-136435) (#136540)
gh-136434: Fix docs generation of `UnboundItem` in subinterpreters (GH-136435)
(cherry picked from commit
3343fce05acb29a772599ce586abd43edf40bae6 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Fri, 11 Jul 2025 10:56:34 +0000 (12:56 +0200)]
[3.14] gh-76637: Note that `undefined` Codec is for testing (GH-136531) (#136536)
gh-76637: Note that `undefined` Codec is for testing (GH-136531)
Closes GH-76637
(cherry picked from commit
975b57d945c84000949f241ded8f44413ecc6217 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Fri, 11 Jul 2025 09:43:52 +0000 (11:43 +0200)]
[3.14] gh-101100: Fix sphinx warnings in `library/email.parser.rst` (GH-136475) (#136532)
Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
Miss Islington (bot) [Thu, 10 Jul 2025 16:09:45 +0000 (18:09 +0200)]
[3.14] gh-52876: Implement missing parameter in `codecs.StreamReaderWriter` functions (GH-136498) (#136514)
gh-52876: Implement missing parameter in `codecs.StreamReaderWriter` functions (GH-136498)
Closes GH-52876
(cherry picked from commit
35e2c359703e076256c1249b74b87043972e04d6 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Thu, 10 Jul 2025 15:41:31 +0000 (17:41 +0200)]
[3.14] gh-82663: Clarify `codecs.iterdecode/encode` docs (GH-136497) (#136513)
gh-82663: Clarify `codecs.iterdecode/encode` docs (GH-136497)
Closes GH-82663
(cherry picked from commit
4b41b2043b110a38616ff86ddb3f065ae7f15c3e )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Thu, 10 Jul 2025 14:52:18 +0000 (16:52 +0200)]
[3.14] gh-132661: Add default value (of `""`) for `Interpolation.expression` (GH-136441) (#136511)
Co-authored-by: Dave Peck <davepeck@gmail.com>
Miss Islington (bot) [Thu, 10 Jul 2025 13:13:34 +0000 (15:13 +0200)]
[3.14] gh-136394: Fix race condition in test_zstd (GH-136432) (GH-136506)
gh-136394: Fix race condition in test_zstd (GH-136432)
(cherry picked from commit
f519918ec6c125715d4efc9713ba80e83346e466 )
Co-authored-by: Rogdham <3994389+Rogdham@users.noreply.github.com>
Miss Islington (bot) [Thu, 10 Jul 2025 13:10:43 +0000 (15:10 +0200)]
[3.14] gh-136209: Add .. c:var:: declarations for C exception types (GH-136210) (GH-136504)
(cherry picked from commit
85bc89f35f40c844df74d913fd32b2b1475fc942 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Thu, 10 Jul 2025 09:30:07 +0000 (11:30 +0200)]
[3.14] gh-136438: Make sure `test_builtins` pass with all optimization levels (GH-136474) (#136496)
gh-136438: Make sure `test_builtins` pass with all optimization levels (GH-136474)
(cherry picked from commit
c17654334946b232aa296696cf70ec93a09d8156 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Thu, 10 Jul 2025 08:36:48 +0000 (10:36 +0200)]
[3.14] gh-136476: Remove creation of unused list (GH-136494) (GH-136495)
(cherry picked from commit
b44316a0976fb3fcd50bae9d67b0810ee0252d93 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Thu, 10 Jul 2025 00:51:09 +0000 (02:51 +0200)]
[3.14] gh-135846: Add zstd dependency to Android build script (GH-136253) (#136491)
Adds zstd to the Android build process.
(cherry picked from commit
61dd9fdad729fe02d91c03804659f7d0c5a89276 )
Co-authored-by: Emma Smith <emma@emmatyping.dev>
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Miss Islington (bot) [Wed, 9 Jul 2025 23:57:40 +0000 (01:57 +0200)]
[3.14] gh-136476: Show the full stack in get_async_stack_trace in _remote_debugging (GH-136483) (#136490)
gh-136476: Show the full stack in get_async_stack_trace in _remote_debugging (GH-136483)
(cherry picked from commit
ea45a2f97cb1d4774a6f88e63c6ce0a487f83031 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Wed, 9 Jul 2025 23:13:29 +0000 (01:13 +0200)]
[3.14] gh-102740: Clarify time.monotonic() "system-wide" in the doc (GH-136431) (#136488)
gh-102740: Clarify time.monotonic() "system-wide" in the doc (GH-136431)
(cherry picked from commit
9c4d28777526e9975b212d49fb0a530f773a3209 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Wed, 9 Jul 2025 21:39:33 +0000 (23:39 +0200)]
[3.14] gh-136145: Define 'standard library' and 'stdlib' in the glossary (GH-136485)
(cherry picked from commit
92f392ad9e5e10ff98eac319e58ec79df5951ce0 )
Co-authored-by: Zachary Ware <zach@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Éric <merwok@netwok.org>
Miss Islington (bot) [Wed, 9 Jul 2025 16:00:54 +0000 (18:00 +0200)]
[3.14] gh-81520: Document unexpected `os.path.ismount` behaviour with btrfs subvolumes (GH-136058) (GH-136471)
gh-81520: Document unexpected `os.path.ismount` behaviour with btrfs subvolumes (GH-136058)
(cherry picked from commit
591abcc01fcf1c65c7fdfaca7274f5d3f9f022da )
Co-authored-by: Oskar Roesler <o.roesler@oscloud.info>
Miss Islington (bot) [Wed, 9 Jul 2025 14:12:47 +0000 (16:12 +0200)]
[3.14] gh-131825: Fix `sqlite3` timezone-naive adapter recipe (GH-136270) (GH-136467)
gh-131825: Fix `sqlite3` timezone-naive adapter recipe (GH-136270)
(cherry picked from commit
6a6cd3c07c0300c8799878a48d555470be2a52f7 )
Co-authored-by: NekrodNIK <60639354+NekrodNIK@users.noreply.github.com>
Miss Islington (bot) [Wed, 9 Jul 2025 13:59:40 +0000 (15:59 +0200)]
[3.14] Docs: unittest.enterModuleContext is not a classmethod (GH-136464) (#136465)
Co-authored-by: Geoffrey Thomas <geofft@ldpreload.com>
Miss Islington (bot) [Wed, 9 Jul 2025 09:23:43 +0000 (11:23 +0200)]
[3.14] gh-136447: Use `self.loop` instead of global `loop` variable in asyncio REPL (GH-136448) (#136458)
gh-136447: Use `self.loop` instead of global `loop` variable in asyncio REPL (GH-136448)
(cherry picked from commit
77fa7a4dcc771bf4d297ebfd4f357483d0750a1c )
Co-authored-by: Justin Su <injustsu@gmail.com>
Miss Islington (bot) [Wed, 9 Jul 2025 08:34:19 +0000 (10:34 +0200)]
[3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455)
gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665)
(cherry picked from commit
797abd1f7fdeb744bf9f683ef844e7279aad3d72 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Wed, 9 Jul 2025 08:07:34 +0000 (10:07 +0200)]
[3.14] gh-136162: Document `encodings` package functions (GH-136164) (#136454)
gh-136162: Document `encodings` package functions (GH-136164)
Closes GH-136162.
(cherry picked from commit
ffd7f2f231f5543e6863c6c85e86f72233229771 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Wed, 9 Jul 2025 08:07:18 +0000 (10:07 +0200)]
[3.14] gh-53243: Document `codecs.readbuffer_encode()` (GH-136284) (#136452)
gh-53243: Document `codecs.readbuffer_encode()` (GH-136284)
Closes GH-53243
(cherry picked from commit
f1dcf3c7bf90961b8d5475154d3f28cfef0a054f )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Wed, 9 Jul 2025 08:00:30 +0000 (10:00 +0200)]
[3.14] gh-94503: Update logging cookbook example with info on addressing log injection. (GH-136446) (GH-136449)
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Wed, 9 Jul 2025 02:42:49 +0000 (04:42 +0200)]
[3.14] gh-136229: Remove Platform Emscripten is not supported warning (GH-136230) (#136445)
Updates configure script to identify Emscripten as Tier 3.
(cherry picked from commit
6ea425828540d7a19296183c3410283897767d9a )
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Miss Islington (bot) [Wed, 9 Jul 2025 01:21:56 +0000 (03:21 +0200)]
[3.14] gh-91048: Revert the memory cache removal for remote debugging (GH-136440) (#136443)
gh-91048: Revert the memory cache removal for remote debugging (GH-136440)
(cherry picked from commit
77d25e5b169f7c306d3a6d9ca6777c0a0be80d8f )
gh-91048: Reintroduce the memory cache for remote debugging
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Tue, 8 Jul 2025 17:58:01 +0000 (19:58 +0200)]
[3.14] GH-133136: Revise QSBR to reduce excess memory held (gh-135473) (#135912)
The free threading build uses QSBR to delay the freeing of dictionary
keys and list arrays when the objects are accessed by multiple threads
in order to allow concurrent reads to proceed with holding the object
lock. The requests are processed in batches to reduce execution
overhead, but for large memory blocks this can lead to excess memory
usage.
Take into account the size of the memory block when deciding when to
process QSBR requests.
Also track the amount of memory being held by QSBR for mimalloc pages. Advance the write sequence if this memory exceeds a limit. Advancing the sequence will allow it to be freed more quickly.
Process the held QSBR items from the "eval breaker", rather than from `_PyMem_FreeDelayed()`. This gives a higher chance that the global read sequence has advanced enough so that items can be freed.
(cherry picked from commit
113de8545ffe74a4a1dddb9351fa1cbd3562b621 )
Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
Co-authored-by: Sam Gross <colesbury@gmail.com>
Miss Islington (bot) [Tue, 8 Jul 2025 17:38:37 +0000 (19:38 +0200)]
[3.14] Update bytecode magic number in tests for the 3.14 release candidate (GH-136427) (#136429)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Tue, 8 Jul 2025 16:11:48 +0000 (18:11 +0200)]
[3.14] gh-136380: Fix import behavior for `concurrent.futures.InterpreterPoolExecutor` (GH-136381) (#136420)
gh-136380: Fix import behavior for `concurrent.futures.InterpreterPoolExecutor` (GH-136381)
(cherry picked from commit
490eea02819ad303a5042529af7507b7b1fdabdc )
Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
Hugo van Kemenade [Tue, 8 Jul 2025 14:35:22 +0000 (17:35 +0300)]
Merge branch '3.14' of https://github.com/python/cpython into 3.14
Hugo van Kemenade [Tue, 8 Jul 2025 14:31:34 +0000 (17:31 +0300)]
Post 3.14.0b4
Miss Islington (bot) [Tue, 8 Jul 2025 12:48:03 +0000 (14:48 +0200)]
[3.14] gh-136186: Fix race condition in test_external_inspection.test_only_active_thread (GH-136347) (#136416)
Miss Islington (bot) [Tue, 8 Jul 2025 12:11:28 +0000 (14:11 +0200)]
[3.14] gh-101100: Fix sphinx warnings in `Doc/library/exceptions.rst` (GH-136309) (#136414)
Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Hugo van Kemenade [Tue, 8 Jul 2025 08:56:46 +0000 (11:56 +0300)]
Python 3.14.0b4
Miss Islington (bot) [Tue, 8 Jul 2025 08:43:57 +0000 (10:43 +0200)]
[3.14] gh-120713: Make _Py_NORMALIZE_CENTURY private (GH-135933) (#136387)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Tue, 8 Jul 2025 08:16:51 +0000 (10:16 +0200)]
[3.14] gh-136297: Fix `hypothesis` and `subTest` usage in `test_zoneinfo_property.py` (GH-136384) (#136407)
gh-136297: Fix `hypothesis` and `subTest` usage in `test_zoneinfo_property.py` (GH-136384)
(cherry picked from commit
db699db99d214dccb7c4849fa609fdd5188ee038 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Tue, 8 Jul 2025 07:03:40 +0000 (09:03 +0200)]
[3.14] gh-136155: Docs: only add custom OpenGraph protocol meta tags for HTML builds (GH-136187) (#136382)
Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Miss Islington (bot) [Tue, 8 Jul 2025 06:47:17 +0000 (08:47 +0200)]
[3.14] gh-101100: Fix sphinx warnings in `whatsnew/3.11.rst` (GH-136402) (#136405)
Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
Miss Islington (bot) [Tue, 8 Jul 2025 06:24:08 +0000 (08:24 +0200)]
[3.14] gh-102567: Add missing newline to `--help-all` (GH-136391) (GH-136403)
gh-102567: Add missing newline to `--help-all` (GH-136391)
(cherry picked from commit
fbef0c1d6a6540f5063138b861f79bdb2a935b0a )
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Tue, 8 Jul 2025 06:03:03 +0000 (08:03 +0200)]
[3.14] gh-135913: Document ob_refcnt, ob_type, ob_size (GH-135914) (GH-136377)
gh-135913: Document ob_refcnt, ob_type, ob_size (GH-135914)
* gh-135913: Document ob_refcnt, ob_type, ob_size
In `typeobj.rst`, instead of `:c:member:` it would be better to
use `.. c:member::` with a `:no-index:` option, see:
See ref. https://www.sphinx-doc.org/en/master/usage/domains/index.html#basic-markup
However, `c:member` currently does not support `:no-index:`.
(cherry picked from commit
73e1207a4ebdb3b43d597cd6c288dae6d7d1dbdb )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Tue, 8 Jul 2025 02:34:18 +0000 (04:34 +0200)]
[3.14] gh-136032: Fix `argparse.BooleanOptionalAction` doc (GH-136133) (#136329)
gh-136032: Fix `argparse.BooleanOptionalAction` doc (GH-136133)
(cherry picked from commit
1953713d0d67a4f54ff75bf8449895a2f08cc750 )
Co-authored-by: W. H. Wang <mattwang44@gmail.com>
Miss Islington (bot) [Mon, 7 Jul 2025 17:21:28 +0000 (19:21 +0200)]
[3.14] gh-135906: Use `_PyObject_CAST` in internal headers (GH-135892) (GH-136392)
gh-135906: Use `_PyObject_CAST` in internal headers (GH-135892)
Fixes build errors encountered in python-greenlet/greenlet#450 when building greenlet on the free-threaded build.
---------
(cherry picked from commit
fe187fae8d8321f1b8d3c9560a35efe904de4217 )
Co-authored-by: Charlie Lin <tuug@gmx.us>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Mon, 7 Jul 2025 16:50:56 +0000 (18:50 +0200)]
[3.14] gh-101100: Fix Sphinx warnings in library/email.compat32-message.rst (GH-136323) (#136389)
Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
Miss Islington (bot) [Mon, 7 Jul 2025 16:24:30 +0000 (18:24 +0200)]
[3.14] gh-87790: support thousands separators for formatting fractional part of Decimal (GH-132202) (#136365)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 7 Jul 2025 16:24:24 +0000 (18:24 +0200)]
[3.14] gh-87790: support thousands separators for formatting fractional part of Fraction (GH-132204) (#136364)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Miss Islington (bot) [Mon, 7 Jul 2025 12:57:37 +0000 (14:57 +0200)]
[3.14] gh-124486: Fix test_whichdb_ndbm in test_dbm on NetBSD (GH-136335) (GH-136378)
On NetBSD, ndbm.open() does not fail for empty file.
(cherry picked from commit
b7aa2a4b4df697db6ea45a555eeb3fefa5ca5bd4 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 7 Jul 2025 11:27:54 +0000 (13:27 +0200)]
[3.14] gh-86682: Add versionadded for sys._getframemodulename (GH-136325) (#136375)
gh-86682: Add versionadded for sys._getframemodulename (GH-136325)
add versionadded for sys._getframemodulename
(cherry picked from commit
11f074b243756bca0db5a7d35dd84f00879de616 )
Co-authored-by: Anthony Sottile <asottile@umich.edu>
Miss Islington (bot) [Mon, 7 Jul 2025 11:07:23 +0000 (13:07 +0200)]
[3.14] gh-131591: Document Py_REMOTE_DEBUG (GH-135929) (GH-136374)
gh-131591: Document Py_REMOTE_DEBUG (GH-135929)
(cherry picked from commit
9aac5a3d44d7191001660aed3a383b062ee4b29b )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Mon, 7 Jul 2025 10:55:20 +0000 (12:55 +0200)]
[3.14] gh-135755: Document __future__.* and CO_* as proper Sphinx objects (GH-135980) (GH-136370)
* Turn the __future__ table to list-table.
This'll make it easier to add entries that need longer markup
* Semantic markup for __future__ feature descriptions.
* Document CO_* C macros.
(cherry picked from commit
2468aafe984fdf923811ef0c6969e3d6c1b92a82 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Mon, 7 Jul 2025 10:48:04 +0000 (12:48 +0200)]
[3.14] gh-101100: Fix sphinx warnings in `whatsnew/3.9` (GH-136163) (#136372)
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Mon, 7 Jul 2025 09:55:35 +0000 (11:55 +0200)]
[3.14] gh-130662: Accept leading zeros in precision/width for Decimal's formatting (GH-132549) (#136362)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Mon, 7 Jul 2025 09:50:02 +0000 (11:50 +0200)]
[3.14] gh-130662: Accept leading zeros in precision/width for Fraction's formatting (GH-130663) (#136361)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Mon, 7 Jul 2025 09:43:44 +0000 (11:43 +0200)]
[3.14] gh-136289: Fix test_sqlite3 on platforms with strict UTF-8 filesystem (GH-136326) (GH-136350)
(cherry picked from commit
85b817da94cf911a964d42e81a57e1de9ab71ef9 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 7 Jul 2025 09:33:55 +0000 (11:33 +0200)]
[3.14] GH-133932: Tagged ints are heap safe (GH-134244) (#134494)
Co-authored-by: Mark Shannon <mark@hotpy.org>
Miss Islington (bot) [Mon, 7 Jul 2025 09:31:18 +0000 (11:31 +0200)]
[3.14] GH-135106: Restrict trashcan to GC'ed objects (GH-135682) (#135876)
Co-authored-by: Mark Shannon <mark@hotpy.org>
Miss Islington (bot) [Mon, 7 Jul 2025 09:18:27 +0000 (11:18 +0200)]
[3.14] gh-94503: Update logging cookbook with an example of uniformly handling newlines in output. (GH-136217) (GH-136357)
(cherry picked from commit
d05423a90ce0ee9ad5207dce3dd06ab2397f3d6e )
Miss Islington (bot) [Mon, 7 Jul 2025 09:08:41 +0000 (11:08 +0200)]
[3.14] gh-127502: Remove XML vulnerability table (GH-135294) (#136359)
gh-127502: Remove XML vulnerability table (GH-135294)
* Remove the table
* Replace warnings with notes
Latest releases of Python 3.9-3.15 include expat 2.7.1 which is not vulnerable.
expat 2.6.0 was released in February 2024.
(cherry picked from commit
cb99d992774b67761441e122965ed056bac09241 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Mon, 7 Jul 2025 07:40:13 +0000 (09:40 +0200)]
[3.14] gh-109700: fix interpreter finalization while handling memory error (GH-136342) (#136352)
gh-109700: fix interpreter finalization while handling memory error (GH-136342)
(cherry picked from commit
0c3e3da19570424649c33c0c2c29dc12541935e7 )
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Jelle Zijlstra [Mon, 7 Jul 2025 00:10:57 +0000 (17:10 -0700)]
[3.14] gh-136316: Make typing.evaluate_forward_ref better at evaluating nested forwardrefs (GH-136319) (#136346)
(cherry picked from commit
9312702d2e12c2f58f02bfa02877d0ec790d06bd )
Miss Islington (bot) [Sun, 6 Jul 2025 18:32:03 +0000 (20:32 +0200)]
[3.14] gh-109070: Document that get_context in multiprocessing have side effect (GH-136341) (GH-136343)
gh-109070: Document that get_context in multiprocessing have side effect (GH-136341)
Document that get_context in multiprocessing have side effect
(cherry picked from commit
77a8bd29da99e7d4fa8e7f07c4063977c2bb14d3 )
Co-authored-by: AN Long <aisk@users.noreply.github.com>
Miss Islington (bot) [Sun, 6 Jul 2025 15:43:16 +0000 (17:43 +0200)]
[3.14] gh-109700: fix memory error handling in `PyDict_SetDefault` (GH-136338) (#136340)
gh-109700: fix memory error handling in `PyDict_SetDefault` (GH-136338)
(cherry picked from commit
d22e073d2b49313bbf42d40cbe74afa2b69385df )
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Miss Islington (bot) [Sun, 6 Jul 2025 13:23:55 +0000 (15:23 +0200)]
[3.14] gh-129824: fix data races in subinterpreters under TSAN (GH-135794) (#136266)
gh-129824: fix data races in subinterpreters under TSAN (GH-135794)
This fixes the data races in typeobject.c in subinterpreters under free-threading. The type flags and slots are only modified in the main interpreter as all static types are first initialised in main interpreter.
(cherry picked from commit
b582d751b4968d4534fdb7894e50713676789b2f )
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Miss Islington (bot) [Sun, 6 Jul 2025 08:13:13 +0000 (10:13 +0200)]
[3.14] gh-136285: Improve `pickle` protocol testing in `test_interpreters` (GH-136286) (#136333)
gh-136285: Improve `pickle` protocol testing in `test_interpreters` (GH-136286)
(cherry picked from commit
06e347b84648f3f8e144e8f70671d610da082b77 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Sat, 5 Jul 2025 18:24:19 +0000 (20:24 +0200)]
[3.14] gh-136315: Fix skipped multithreading test in test_zstd (GH-136320) (#136322)
gh-136315: Fix skipped multithreading test in test_zstd (GH-136320)
Fix skipped test in test_zstd
(cherry picked from commit
5dac137b9f75c5c1d5096101bcd33d565d0526e4 )
Co-authored-by: Emma Smith <emma@emmatyping.dev>
Miss Islington (bot) [Sat, 5 Jul 2025 13:35:24 +0000 (15:35 +0200)]
[3.14] gh-101100: Fix references in `http.cookiejar` docs (GH-136238) (GH-136318)
gh-101100: Fix references in `http.cookiejar` docs (GH-136238)
(cherry picked from commit
f0c7344a8fbfe67c05981cce67562e7facfae73d )
Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
Miss Islington (bot) [Sat, 5 Jul 2025 06:39:48 +0000 (08:39 +0200)]
[3.14] gh-136297: Test all `pickle` protocols in `test_zoneinfo_property.py` (GH-136298) (#136311)
gh-136297: Test all `pickle` protocols in `test_zoneinfo_property.py` (GH-136298)
(cherry picked from commit
5de7e3f9739b01ad180fffb242ac57cea930e74d )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Fri, 4 Jul 2025 16:18:32 +0000 (18:18 +0200)]
[3.14] gh-136288: Fix error message in `_testcapi/vectorcall.c` (GH-136258) (GH-136294)
gh-136288: Fix error message in `_testcapi/vectorcall.c` (GH-136258)
Use the %N format specifier instead of %s and `PyType_GetName`.
(cherry picked from commit
d1d5dce14f90d777608e4403d09079421ff55944 )
Co-authored-by: William S Fulton <wsf@fultondesigns.co.uk>
Miss Islington (bot) [Fri, 4 Jul 2025 14:46:57 +0000 (16:46 +0200)]
[3.14] Docs: Move "or" outside monospace syntax in `tarfile.rst` (GH-136263) (GH-136290)
Docs: Move "or" outside monospace syntax in `tarfile.rst` (GH-136263)
(cherry picked from commit
ade19880943509945da193202ca89e0b2b6fbd75 )
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Miss Islington (bot) [Fri, 4 Jul 2025 14:36:12 +0000 (16:36 +0200)]
[3.14] gh-135773: have pyvenv.cfg without home key anchor a venv and deduce home (GH-135831) (#136287)
gh-135773: have pyvenv.cfg without home key anchor a venv and deduce home (GH-135831)
This is still formally undefined behaviour, but we may as well
keep the *same* undefined behaviour as previous versions.
PEP 796 proposes a cleaner and more consistent replacement for 3.15+
(cherry picked from commit
93263d43141a81d369adfcddf325f9a54cb5766d )
Co-authored-by: Richard Levasseur <rlevasseur@google.com>
Miss Islington (bot) [Fri, 4 Jul 2025 07:26:03 +0000 (09:26 +0200)]
[3.14] gh-102555: Fix comment parsing in HTMLParser according to the HTML5 standard (GH-135664) (GH-136271)
* "--!>" now ends the comment.
* "-- >" no longer ends the comment.
* Support abnormally ended empty comments "<-->" and "<--->".
---------
(cherry picked from commit
8ac7613dc8b8f82253d7c0e2b6ef6ed703a0a1ee )
Co-author: Kerim Kabirov <the.privat33r+gh@pm.me>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Miss Islington (bot) [Thu, 3 Jul 2025 21:10:27 +0000 (23:10 +0200)]
[3.14] Clarify some details regarding `sys.monitoring` (GH-133981) (GH-136259)
Clarify some details regarding `sys.monitoring` (GH-133981)
(cherry picked from commit
b4991056f4f44acb50aea3838463e749c24c7420 )
Co-authored-by: Brett Cannon <brett@python.org>
Miss Islington (bot) [Thu, 3 Jul 2025 20:57:53 +0000 (22:57 +0200)]
[3.14] gh-135661: Fix parsing start and end tags in HTMLParser according to the HTML5 standard (GH-135930) (GH-136255)
* Whitespaces no longer accepted between `</` and the tag name.
E.g. `</ script>` does not end the script section.
* Vertical tabulation (`\v`) and non-ASCII whitespaces no longer recognized
as whitespaces. The only whitespaces are `\t\n\r\f `.
* Null character (U+0000) no longer ends the tag name.
* Attributes and slashes after the tag name in end tags are now ignored,
instead of terminating after the first `>` in quoted attribute value.
E.g. `</script/foo=">"/>`.
* Multiple slashes and whitespaces between the last attribute and closing `>`
are now ignored in both start and end tags. E.g. `<a foo=bar/ //>`.
* Multiple `=` between attribute name and value are no longer collapsed.
E.g. `<a foo==bar>` produces attribute "foo" with value "=bar".
* Whitespaces between the `=` separator and attribute name or value are no
longer ignored. E.g. `<a foo =bar>` produces two attributes "foo" and
"=bar", both with value None; `<a foo= bar>` produces two attributes:
"foo" with value "" and "bar" with value None.
---------
(cherry picked from commit
0243f97cbadec8d985e63b1daec5d1cbc850cae3 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Miss Islington (bot) [Thu, 3 Jul 2025 20:34:38 +0000 (22:34 +0200)]
[3.14] gh-135252: Document Zstandard integration across zipfile, shutil, and tarfile (GH-135311) (#136254)
gh-135252: Document Zstandard integration across zipfile, shutil, and tarfile (GH-135311)
Document Zstandard integration across zipfile, shutil, and tarfile
(cherry picked from commit
938a5d7e62d962a8462bce9fe04236ac9a2155b8 )
Co-authored-by: Emma Smith <emma@emmatyping.dev>
Miss Islington (bot) [Thu, 3 Jul 2025 12:50:38 +0000 (14:50 +0200)]
[3.14] gh-115119: Recommend upstream libmpdec in build requirements (GH-136205) (#136244)
gh-115119: Recommend upstream libmpdec in build requirements (GH-136205)
(cherry picked from commit
b2e498ac26ba4720fa8a6a466aa8416ab69754d7 )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Thu, 3 Jul 2025 11:22:03 +0000 (13:22 +0200)]
[3.14] gh-130664: Treat '0' fill character with align '=' as zero-padding for Fraction's (GH-131067) (GH-136241)
(cherry picked from commit
c113a8e5236b31217d82ce289d3df6ec9e8411cd )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Miss Islington (bot) [Thu, 3 Jul 2025 11:04:30 +0000 (13:04 +0200)]
[3.14] gh-133740: Fix regression in locale.nl_langinfo(ALT_DIGITS) (GH-136237) (GH-136240)
There is no need to temporary switch locale for items ALT_DIGITS and ERA
if the nl_langinfo() result is empty (most locales).
(cherry picked from commit
5c984ae35e30f0533e6cc727d23cc158decf001c )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Thu, 3 Jul 2025 10:18:27 +0000 (12:18 +0200)]
[3.14] gh-135069: Fix exception message in encodings.idna module (GH-135071) (#136235)
gh-135069: Fix exception message in encodings.idna module (GH-135071)
(cherry picked from commit
8dc3383abea72ee3deafec60818aeb817d8fec09 )
Co-authored-by: Daniel Hollas <daniel.hollas@bristol.ac.uk>
Miss Islington (bot) [Thu, 3 Jul 2025 10:17:10 +0000 (12:17 +0200)]
[3.14] Fix comments for `heapq.siftup_max` (GH-135359) (#136232)
Fix comments for `heapq.siftup_max` (GH-135359)
(cherry picked from commit
8f8bdf251a5f79d15ac2b1a6d19860033bf50c79 )
Co-authored-by: Alper <alperyoney@fb.com>
Co-authored-by: mpage <mpage@meta.com>
Miss Islington (bot) [Thu, 3 Jul 2025 08:15:01 +0000 (10:15 +0200)]
[3.14] gh-135640: Adds more type checking to ElementTree (GH-135643) (GH-136225)
(cherry picked from commit
e0245c789f54b63d461717a91eec8ffccbe18966 )
Co-authored-by: Kira <kirawhoprograms@fastmail.com>
Miss Islington (bot) [Thu, 3 Jul 2025 06:42:17 +0000 (08:42 +0200)]
[3.14] gh-127705: Move Py_INCREF_MORTAL() to the internal C API (GH-136178) (#136206)
gh-127705: Move Py_INCREF_MORTAL() to the internal C API (GH-136178)
Rename Py_INCREF_MORTAL() to _Py_INCREF_MORTAL() and move it to
pycore_object.h internal header.
(cherry picked from commit
fa43a1e0f8caf00a15898fa719e31767c866bd90 )
Co-authored-by: Victor Stinner <vstinner@python.org>