]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Mon, 20 Oct 2025 14:25:42 +0000 (16:25 +0200)]
[3.14] gh-140263: Fix data race in test_lock_two_threads (gh-140264) (gh-140369)
Clang-20 detects a data race between the unlock and the non-atomic
read of the lock state. Use a relaxed load for the assertion to avoid
the race.
(cherry picked from commit
f11ec6e643f54f4ee698f7dfc878812a315f2af4 )
Co-authored-by: Sam Gross <colesbury@gmail.com>
Miss Islington (bot) [Mon, 20 Oct 2025 09:54:41 +0000 (11:54 +0200)]
[3.14] gh-140301: Fix memory leak in subinterpreter `PyConfig` cleanup (GH-140303) (#140360)
gh-140301: Fix memory leak in subinterpreter `PyConfig` cleanup (GH-140303)
(cherry picked from commit
a615fb49c948902a982c3256899507abcc9f9bc8 )
Co-authored-by: Shamil <ashm.tech@proton.me>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Miss Islington (bot) [Mon, 20 Oct 2025 07:21:31 +0000 (09:21 +0200)]
[3.14] gh-101100: Fix sphinx warnings in `library/resource.rst` (GH-140023) (#140352)
Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
Miss Islington (bot) [Mon, 20 Oct 2025 04:31:05 +0000 (06:31 +0200)]
[3.14] docs: be clearer that glob results are unordered (GH-140184) (#140339)
(cherry picked from commit
ed672f7a8a3c843d8e6e6b673d5a7c1f752f208c )
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Miss Islington (bot) [Sun, 19 Oct 2025 21:13:48 +0000 (23:13 +0200)]
[3.14] Standardize translation of `Doc/bugs.rst` (GH-137449) (#140275)
Standardize translation of `Doc/bugs.rst` (GH-137449)
(cherry picked from commit
869bb6948eb501b19db53cb27c523c3203a5ab11 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Sun, 19 Oct 2025 19:53:36 +0000 (21:53 +0200)]
[3.14] gh-140306: Fix memory leaks in cross-interpreter data handling (GH-140307) (GH-140338)
(cherry picked from commit
f9323213c98c9f1f7f3bf5af883b73047432fe50 )
Co-authored-by: Shamil <ashm.tech@proton.me>
Miss Islington (bot) [Sun, 19 Oct 2025 19:16:33 +0000 (21:16 +0200)]
[3.14] gh-63161: Fix PEP 263 support (GH-139481) (GH-139898)
* Support non-UTF-8 shebang and comments if non-UTF-8 encoding is specified.
* Detect decoding error in comments for UTF-8 encoding.
* Include the decoding error position for default encoding in SyntaxError.
(cherry picked from commit
5c942f11cdf5f9d7313200983fa0c58b3bc670a2 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 19 Oct 2025 08:49:48 +0000 (10:49 +0200)]
[3.14] `Lib/idlelib/idle_test/__init__.py`: remove commented out duplicate code (GH-140259) (#140322)
`Lib/idlelib/idle_test/__init__.py`: remove commented out duplicate code (GH-140259)
(cherry picked from commit
790cdae5a0295586a55f00a57ed24a86b83928dc )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Sun, 19 Oct 2025 03:52:59 +0000 (05:52 +0200)]
[3.14] gh-138997: Remove false justify `fill` option from Tkinter docs (GH-139023) (#140319)
gh-138997: Remove false justify `fill` option from Tkinter docs (GH-139023)
(cherry picked from commit
115a04b80259ac3116571eb601c5efc51004e90c )
Co-authored-by: Marat Khagazheev <marathagazeev@gmail.com>
Co-authored-by: marat <khagazheev@artlebedev.ru>
Miss Islington (bot) [Sat, 18 Oct 2025 18:59:37 +0000 (20:59 +0200)]
[3.14] gh-128571: Document UTF-16/32 native byte order (GH-139974) (#140309)
Closes GH-128571
(cherry picked from commit
920de7ccdcfa7284b6d23a124771b17c66dd3e4f )
Co-authored-by: Parham MohammadAlizadeh <prhmma@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Kumar Aditya [Sat, 18 Oct 2025 14:10:43 +0000 (19:40 +0530)]
[3.14] gh-140067: Fix memory leak in sub-interpreter creation (GH-140111) (#140118)
* [3.14] gh-140067: Fix memory leak in sub-interpreter creation (GH-140111)
Fix memory leak in sub-interpreter creation caused by overwriting of the previously used `_malloced` field. Now the pointer is stored in the first word of the memory block to avoid it being overwritten accidentally.
(cherry picked from commit
59547a251f7069dc6e08cb6082dd21872671e381 )
Co-authored-by: Shamil <ashm.tech@proton.me>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Miss Islington (bot) [Sat, 18 Oct 2025 11:28:53 +0000 (13:28 +0200)]
[3.14] gh-140257: fix data race on eval_breaker during finalization (GH-140265) (#140294)
gh-140257: fix data race on eval_breaker during finalization (GH-140265)
(cherry picked from commit
c8729c9909e150989050ce2a435d018955bea41d )
Co-authored-by: Shamil <ashm.tech@proton.me>
Miss Islington (bot) [Sat, 18 Oct 2025 11:02:09 +0000 (13:02 +0200)]
[3.14] gh-140241: Fix documentation for the registry parameter of warnings.warn_explicit() (GH-140242) (GH-140292)
(cherry picked from commit
78e1d65a4d656e783bc28a02e113f59e4323e41a )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Sat, 18 Oct 2025 11:00:28 +0000 (13:00 +0200)]
[3.14] Move the NEWS entry for gh-140272 to the correct place (GH-140290) (GH-140291)
(cherry picked from commit
936de256a9542c58da72a8986658bb307b2f2175 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 18 Oct 2025 10:17:42 +0000 (12:17 +0200)]
[3.14] gh-140272: Fix memory leak in _gdbm.gdbm.clear() (GH-140274) (GH-140285)
(cherry picked from commit
f937468e7c88c768a28ff4e653da051ffa30d86c )
Co-authored-by: Shamil <ashm.tech@proton.me>
Miss Islington (bot) [Fri, 17 Oct 2025 22:23:01 +0000 (00:23 +0200)]
[3.14] GH-133789: Fix unpickling of pathlib objects pickled in Python 3.13 (GH-133831) (#140276)
GH-133789: Fix unpickling of pathlib objects pickled in Python 3.13 (GH-133831)
In Python 3.13 (but not 3.12 or 3.14), pathlib classes are defined in
`pathlib._local` rather than `pathlib`. In hindsight this was a mistake,
but it was difficult to predict how the abstract/local split would pan out.
In this patch we re-introduce `pathlib._local` as a stub module that
re-exports the classes from `pathlib`. This allows path objects pickled in
3.13 to be unpicked in 3.14+
(cherry picked from commit
f4e51f253ad6c27583438f6182c33cf368bfa45f )
Co-authored-by: Barney Gale <barney.gale@gmail.com>
Miss Islington (bot) [Fri, 17 Oct 2025 15:29:15 +0000 (17:29 +0200)]
[3.14] gh-116738: test `uuid` module thread safety in free-threading (GH-140068) (#140229)
gh-116738: test `uuid` module thread safety in free-threading (GH-140068)
(cherry picked from commit
9a87ce8b57f5d698900d84b4f6f5aa47b5f37a89 )
Co-authored-by: Alper <alperyoney@fb.com>
Miss Islington (bot) [Fri, 17 Oct 2025 11:48:03 +0000 (13:48 +0200)]
[3.14] gh-135801: Add tests for filtering warnings by module (GH-140240) (GH-140246)
(cherry picked from commit
fbf0843e39e01ec8a8295f6475065b08053f13dd )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 17 Oct 2025 04:25:14 +0000 (06:25 +0200)]
[3.14] gh-131788: make resource_tracker re-entrant safe (GH-131787) (#137737)
gh-131788: make resource_tracker re-entrant safe (GH-131787)
* make resource_tracker re-entrant safe
* Update Lib/multiprocessing/resource_tracker.py
* trim trailing whitespace
* use f-string and args = [x, *y, z]
* raise self._reentrant_call_error
---------
(cherry picked from commit
f24a012350f71141648cbd61081a25a458dd7fff )
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
Miss Islington (bot) [Fri, 17 Oct 2025 03:53:12 +0000 (05:53 +0200)]
[3.14] gh-140120: Refresh HACL* to fix an hmac memory leak (GH-140188) (#140192)
gh-140120: Refresh HACL* to fix an hmac memory leak (GH-140188)
This pulls an updated version of HACL* that fixes the memory leak reported in GH-140120, via an upstream fix.
(cherry picked from commit
3a81313019ba82152653bd86f6ffd87dfe339c60 )
Co-authored-by: Jonathan Protzenko <jonathan.protzenko+github@gmail.com>
Miss Islington (bot) [Thu, 16 Oct 2025 20:26:29 +0000 (22:26 +0200)]
[3.14] gh-138859: Account for `ParamSpec` defaults that are not lists … (GH-138868) (#140207)
gh-138859: Account for `ParamSpec` defaults that are not lists … (GH-138868)
(cherry picked from commit
379fd020a0116754f22b04fa2f7f27a8f7b372b0 )
Co-authored-by: bzoracler <50305397+bzoracler@users.noreply.github.com>
Tan Long [Thu, 16 Oct 2025 18:10:15 +0000 (02:10 +0800)]
[3.14] Remove duplicate words in the documentation (GH-140221) (GH-140225)
(cherry picked from commit
2ebd0cdb16a8824957ea588e1aab0a35d45e6b7b )
Miss Islington (bot) [Thu, 16 Oct 2025 15:22:57 +0000 (17:22 +0200)]
[3.14] gh-140078: fix typo in tkinter docs (GH-140081) (#140217)
gh-140078: fix typo in tkinter docs (GH-140081)
Remove extraneous word.
(cherry picked from commit
5f357f3b0de0d937afb0154d0df7e0298c2523cf )
Co-authored-by: wangxiaolei <fatelei@gmail.com>
Miss Islington (bot) [Thu, 16 Oct 2025 10:31:59 +0000 (12:31 +0200)]
[3.14] gh-140170: Fix test_site with -s flag (GH-140179) (#140198)
gh-140170: Fix test_site with -s flag (GH-140179)
Commit
(cherry picked from commit
7ac94fcb1d09796f55faeaf30e349a86a88f7ed6 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Thu, 16 Oct 2025 07:50:01 +0000 (09:50 +0200)]
[3.14] gh-140065: Lexical analysis: Correct note about leading zeros in floating point numbers (GH-140066) (GH-140167)
(cherry picked from commit
1624c646b045df15ba41d17ff03231978b80c3ff )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Wed, 15 Oct 2025 22:08:35 +0000 (00:08 +0200)]
[3.14] gh-140041: Fix import of `ctypes` on Android and Cygwin when ABI flags are present (GH-140178) (#140180)
Use sysconfig to determine the full name of libpython, rather than hardcoding
a library name that doesn't have ABI flags.
(cherry picked from commit
7f371ed84ba471bb1b11e79b502f244a9c17ac84 )
Co-authored-by: Malcolm Smith <smith@chaquo.com>
yihong [Wed, 15 Oct 2025 15:25:06 +0000 (23:25 +0800)]
[3.14] gh-140080: Add test for executing `atexit` callbacks under no memory (GH-140161)
Miss Islington (bot) [Wed, 15 Oct 2025 15:02:03 +0000 (17:02 +0200)]
[3.14] gh-140153: Fix Py_REFCNT() definition on limited C API 3.11-3.13 (GH-140158) (#140164)
gh-140153: Fix Py_REFCNT() definition on limited C API 3.11-3.13 (GH-140158)
(cherry picked from commit
728d239e57b650c392517b7ae569b0eb05af826e )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Wed, 15 Oct 2025 14:49:17 +0000 (16:49 +0200)]
[3.14] gh-140061: Use `_PyObject_IsUniquelyReferenced()` to check if objects are uniquely referenced (gh-140062) (gh-140157)
The previous `Py_REFCNT(x) == 1` checks can have data races in the free
threaded build. `_PyObject_IsUniquelyReferenced(x)` is a more conservative
check that is safe in the free threaded build and is identical to
`Py_REFCNT(x) == 1` in the default GIL-enabled build.
(cherry picked from commit
32c264982ec67460642b907dabc3304019318291 )
Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
Miss Islington (bot) [Wed, 15 Oct 2025 11:06:18 +0000 (13:06 +0200)]
[3.14] gh-129559: Remove extra dot in bytearray.resize AC (GH-140134) (#140143)
Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Miss Islington (bot) [Wed, 15 Oct 2025 11:05:47 +0000 (13:05 +0200)]
[3.14] gh-138993: Dedent `credits` text (GH-138994) (#140088)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Tue, 14 Oct 2025 15:56:01 +0000 (17:56 +0200)]
[3.14] gh-139640: Fix swallowing syntax warnings in different modules (GH-139755) (GH-140117)
Revert GH-131993.
Fix swallowing some syntax warnings in different modules if they accidentally
have the same message and are emitted from the same line.
Fix duplicated warnings in the "finally" block.
(cherry picked from commit
279db6bede30be3a1b86803585eb4404d27800da )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Update 2025-10-06-10-03-37.gh-issue-139640.gY5oTb.rst
---------
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 14 Oct 2025 14:36:05 +0000 (16:36 +0200)]
[3.14] gh-101828: Fix `jisx0213` codecs removing null characters (gh-139340) (gh-140110)
gh-101828: Fix `jisx0213` codecs removing null characters (gh-139340)
(cherry picked from commit
87eadce3e0309d80a95e85d70a00028b5dca9907 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Tue, 14 Oct 2025 14:27:37 +0000 (16:27 +0200)]
[3.14] gh-106318: Add examples for str.istitle() (GH-140046) (#140113)
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Miss Islington (bot) [Tue, 14 Oct 2025 14:13:33 +0000 (16:13 +0200)]
[3.14] gh-114827: clarify `threading.Event.wait` timeout behavior (GH-114834) (#140100)
Co-authored-by: Doug Hoskisson <beauxq@users.noreply.github.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Sergey B Kirpichev [Tue, 14 Oct 2025 13:44:30 +0000 (16:44 +0300)]
[3.14] gh-102431: Clarify constraints on operands of Decimal logical operations (GH-102836) (#140105)
* [3.14] gh-102431: Clarify constraints on operands of Decimal logical operations (GH-102836)
Sync C/Python implementation of the decimal: logical_ops for contexts.
(cherry picked from commit
6ecf77dbdec7838e9ce2298cb8d16e8c2250da81 )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Miss Islington (bot) [Tue, 14 Oct 2025 13:40:30 +0000 (15:40 +0200)]
[3.14] GH-140058: Clear key and value if `PyTuple_New` fails in `dictiter_iternextitem` (GH-140059) (#140107)
GH-140058: Clear key and value if `PyTuple_New` fails in `dictiter_iternextitem` (GH-140059)
(cherry picked from commit
ded59f7e8e93274488584574ff2336a98bc4eff6 )
Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
Miss Islington (bot) [Tue, 14 Oct 2025 11:15:36 +0000 (13:15 +0200)]
[3.14] gh-70765: Remove unnecessary extra backtick from Changelog entry (GH-140071) (#140102)
gh-70765: Remove unnecessary extra backtick from Changelog entry (GH-140071)
(cherry picked from commit
f70082b4777804b69e98192121a61c2048669a16 )
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Miss Islington (bot) [Tue, 14 Oct 2025 08:36:39 +0000 (10:36 +0200)]
[3.14] gh-82575: Adjust `time.get_clock_info` *adjustable* attribute doc (GH-135920) (#140097)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Tue, 14 Oct 2025 08:32:27 +0000 (10:32 +0200)]
[3.14] gh-137871: Clarify cmath.nan documentation by linking to math module (GH-137876) (#140095)
Co-authored-by: Aziz <azizbenothman76@gmail.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Miss Islington (bot) [Tue, 14 Oct 2025 08:28:12 +0000 (10:28 +0200)]
[3.14] gh-97914: Reword misleading sentence on conditional expressions (GH-139064) (#140093)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Gilles Peiffer <gilles.peiffer.yt@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Tue, 14 Oct 2025 08:27:21 +0000 (10:27 +0200)]
[3.14] gh-138072: Fix typos and grammatical errors and improve clarity in asyncio howto document (GH-138895) (#140091)
Co-authored-by: Morteza24 <mortezia4444.mz@gmail.com>
Miss Islington (bot) [Tue, 14 Oct 2025 08:26:00 +0000 (10:26 +0200)]
[3.14] gh-102247: Improve documentation of http.HTTPStatus members update (GH-133190) (#140089)
Co-authored-by: Loïc Simon <loic.simon@napta.io>
Miss Islington (bot) [Tue, 14 Oct 2025 08:19:29 +0000 (10:19 +0200)]
[3.14] gh-101100: Fix sphinx warnings in `library/smtplib.rst` (GH-139991) (#140084)
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) [Tue, 14 Oct 2025 07:29:32 +0000 (09:29 +0200)]
[3.14] gh-139590: Stricter `ruff` rules for `Tools/wasm` (GH-139752) (#139811)
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Mon, 13 Oct 2025 20:36:24 +0000 (22:36 +0200)]
[3.14] gh-140000: Traverse `name` attribute for `TypeVar`, `TypeVarTuple`, `TypeAliasType`, `ParamSpec` (GH-140016) (#140063)
gh-140000: Traverse `name` attribute for `TypeVar`, `TypeVarTuple`, `TypeAliasType`, `ParamSpec` (GH-140016)
(cherry picked from commit
be60e4b4f34a097d999d337446786ae14e35c964 )
Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
Miss Islington (bot) [Mon, 13 Oct 2025 20:08:42 +0000 (22:08 +0200)]
gh-139810: Always generate -dev tags for PyManager packages (GH-139814)
(cherry picked from commit
c46265d94a2d2c5bcaabbbc312f8f6ac9162cd5f )
Co-authored-by: Steve Dower <steve.dower@python.org>
Kumar Aditya [Mon, 13 Oct 2025 17:55:24 +0000 (23:25 +0530)]
[3.14] gh-125996: fix thread safety of `collections.OrderedDict` (GH-133734) (#140053)
(cherry picked from commit
6481539a6d9692ddf13ab01baad1bc9133409413 )
Miss Islington (bot) [Mon, 13 Oct 2025 15:56:26 +0000 (17:56 +0200)]
[3.14] gh-138772: Fix and improve documentation for turtle color functions (GH-139325) (GH-140047)
Use multiple signatures for clarity.
Explain different forms of bgcolor() in details.
Fix outdated docstrings.
(cherry picked from commit
525dcfe5236ee21b234cad16d2a3d5769e77e0ec )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 13 Oct 2025 14:25:49 +0000 (16:25 +0200)]
[3.14] Using Python on Windows: Free-threaded is supported from 3.14 (GH-139992) (#140045)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Mon, 13 Oct 2025 11:30:27 +0000 (13:30 +0200)]
[3.14] gh-107073: fix relevant typo in `PyObject_ClearManagedDict` (GH-140032) (#140033)
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) [Mon, 13 Oct 2025 08:48:28 +0000 (10:48 +0200)]
[3.14] gh-131189: Remove `curses` mention from `PYTHON_BASIC_REPL` docs (GH-140022) (#140027)
gh-131189: Remove `curses` mention from `PYTHON_BASIC_REPL` docs (GH-140022)
The `curses` dependency for the default REPL has been removed
in
031645a88427d8c8df70ae96519b4d2d0ae550f7 (backport of
09dfb50f1b7c23bc48d86bd579671761bb8ca48b ).
(cherry picked from commit
0344db8d60621705af88daa7ff65bde063271f99 )
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Miss Islington (bot) [Sun, 12 Oct 2025 17:16:21 +0000 (19:16 +0200)]
[3.14] GH-139979: Add @force_not_colorized_test_class to TestOptionalHelpVersionActions (GH-139980) (#140005)
GH-139979: Add @force_not_colorized_test_class to TestOptionalHelpVersionActions (GH-139980)
(cherry picked from commit
0fc5c56815b963e4b45469b2b6a5610ea2f2d181 )
Co-authored-by: Savannah Ostrowski <savannah@python.org>
Miss Islington (bot) [Sun, 12 Oct 2025 16:55:49 +0000 (18:55 +0200)]
[3.14] gh-139155: Remove "dictionaries are sorted by key" note in `pprint` docs (GH-139159) (GH-140003)
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) [Sun, 12 Oct 2025 12:51:42 +0000 (14:51 +0200)]
[3.14] gh-116738: test `dbm.gnu` module on FT Python build (GH-138467) (#139987)
gh-116738: test `dbm.gnu` module on FT Python build (GH-138467)
(cherry picked from commit
a18843dbfba32387be4236379260f7c15a002e0d )
Co-authored-by: Alper <alperyoney@fb.com>
Miss Islington (bot) [Sun, 12 Oct 2025 12:26:29 +0000 (14:26 +0200)]
[3.14] gh-127081: add critical sections to `dbm` objects (gh-132749) (#139996)
gh-127081: add critical sections to `dbm` objects (gh-132749)
(cherry picked from commit
ffaeb3dddf17b891301e6f172c87267f59784d00 )
Co-authored-by: Duane Griffin <duaneg@dghda.com>
Miss Islington (bot) [Sun, 12 Oct 2025 11:16:43 +0000 (13:16 +0200)]
[3.14] gh-139988: fix a leak when failing to create a Union type (GH-139990) (#139993)
gh-139988: fix a leak when failing to create a Union type (GH-139990)
(cherry picked from commit
6710156bd27dd48493d15f515506a0ead5d0328f )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Sat, 11 Oct 2025 18:34:30 +0000 (20:34 +0200)]
[3.14] gh-101100: Fix Sphinx warnings in `Doc/library/signal.rst` (GH-139930) (GH-139966)
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 17:59:55 +0000 (19:59 +0200)]
[3.14] gh-139929: fix incorrect OpenSSL version-based guard in `_ssl.c` (GH-139945) (#139964)
gh-139929: fix incorrect OpenSSL version-based guard in `_ssl.c` (GH-139945)
fix OpenSSL version-based guards
(cherry picked from commit
cdd3eee7fc26538c8365dcbf2dd844ec7cdf7fb7 )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Sat, 11 Oct 2025 15:40:23 +0000 (17:40 +0200)]
[3.14] gh-139905: Provide suggestion in error message if `Generic.__init_subclass__` was not called (GH-139943) (#139955)
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: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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Ł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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>