Commit graph

125310 commits

Author SHA1 Message Date
Miss Islington (bot)
e07cda302e
[3.13] gh-142752: add more thread safety tests for mock (GH-142791) (#142857)
gh-142752: add more thread safety tests for mock (GH-142791)
(cherry picked from commit 4fd006e712)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-12-17 08:09:59 +00:00
Miss Islington (bot)
fb5474726c
[3.13] gh-142315: Don't pass the "real path" of Pdb script target to system functions (GH-142371) (#142498)
gh-142315: Don't pass the "real path" of Pdb script target to system functions (GH-142371

---------
(cherry picked from commit d716e3b2dd)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
2025-12-16 10:53:09 -05:00
Miss Islington (bot)
bce4a20195
[3.13] gh-130536: Add details to os.path documentation (GH-130557) (#142801)
Co-authored-by: Arthur Wigo <arthur.l.wigo@gmail.com>
2025-12-16 14:50:58 +00:00
Miss Islington (bot)
3b5c7ba76f
[3.13] gh-83926: BlockingIOError characters_written is byte count (GH-141215) (#142815)
gh-83926: BlockingIOError characters_written is byte count (GH-141215)
(cherry picked from commit e12c744b0a)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
2025-12-16 12:04:13 +00:00
Miss Islington (bot)
8f25661ed9
[3.13] gh-142019: Add description about the exponent of result formatted with presentation type 'e' (GH-142084) (#142814)
Co-authored-by: 1nftf <QfxZ11@proton.me>
2025-12-16 12:02:07 +00:00
Miss Islington (bot)
c2d34a1396
[3.13] gh-141218: Fix inaccurate object comparison documentation (GH-141221) (#142811)
Co-authored-by: Mohsin Mehmood <55545648+mohsinm-dev@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-12-16 11:52:38 +00:00
Miss Islington (bot)
11629e0a8c
[3.13] Remove duplicate content in Mapping types - dict documentation (GH-141036) (#142809)
Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
2025-12-16 11:52:07 +00:00
Miss Islington (bot)
1baa315222
[3.13] Correct Glossary key function example to use str.casefold instead of str.lower (GH-140316) (#142806)
Co-authored-by: Cameron Beck <94604154+cbkinase@users.noreply.github.com>
2025-12-16 11:50:02 +00:00
Miss Islington (bot)
2818224ef3
[3.13] gh-106318: Add examples for str.ljust() method (GH-142719) (#142803)
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-12-16 11:45:31 +00:00
Miss Islington (bot)
4ad9844f72
[3.13] gh-85204: Improve locale.setlocale example (GH-132683) (#142799)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-12-16 11:32:19 +00:00
Miss Islington (bot)
10738f19cc
[3.13] gh-124864: Extends smtplib documentation on ESMTP options format (GH-132547) (#142797)
Co-authored-by: Patrick R <codeZeilen@users.noreply.github.com>
2025-12-16 11:27:42 +00:00
Miss Islington (bot)
4480f5b661
[3.13] gh-142595: Amend be5e0dcded (fix NULL pointer dereference) (GH-142775) (GH-142789)
(cherry picked from commit 15a9762500)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-12-16 13:00:40 +02:00
Miss Islington (bot)
c32a4c14fd
[3.13] gh-142020: ctypes docs: Note that find_library relies on the programs it runs (GH-142134) (GH-142749)
gh-142020: ctypes docs: Note that find_library relies on the programs it runs (GH-142134)
(cherry picked from commit e4d32a3ef9)
2025-12-16 10:56:32 +01:00
Cody Maloney
affd2f2ff2
[3.13] gh-142594: fix by property calls io.TextIOWrapper.detach (GH-142706) (GH-142757)
(cherry picked from commit 1d3854a19a)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: yihong <zouzou0208@gmail.com>
2025-12-16 10:55:35 +01:00
Bartosz Sławecki
3e45440382
[3.13] gh-142737: Handle lost io.open in _Py_FindSourceFile (GH-142747) (GH-142774)
(cherry picked from commit f277781bba)
2025-12-15 23:27:15 +00:00
Miss Islington (bot)
4a49a11c62
[3.13] gh-85222: Document the global start method side effect in multiprocessing (GH-136426) (#142771)
gh-85222: Document the global start method side effect in multiprocessing (GH-136426)

* Document the ctx parameter in some types in multiprocessing.
* Reduce duplication while still linking to the central explanation from API points with the side effect.
(cherry picked from commit 0978b9a7d5)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Co-authored-by: R Chintan Meher <meherrihaan@gmail.com>
2025-12-15 22:18:57 +00:00
Miss Islington (bot)
f66684969e
[3.13] gh-142595: add type check for namedtuple call during decimal initialization (GH-142608) (GH-142622)
(cherry picked from commit be5e0dcded)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2025-12-15 15:04:11 +01:00
Miss Islington (bot)
8ebda57bb1
[3.13] gh-142651: make Mock.call_count thread-safe (GH-142656) (#142744)
gh-142651: make `Mock.call_count` thread-safe (GH-142656)
(cherry picked from commit 850f95f6f6)

Co-authored-by: chaope <pengchaoandy@gmail.com>
2025-12-15 18:22:11 +05:30
Miss Islington (bot)
7957bfd1ac
[3.13] gh-90871: fix connection backlog offset in asyncio (gh-134392) (#142739)
gh-90871: fix connection backlog offset in asyncio (gh-134392)
(cherry picked from commit 109f7597d2)

Co-authored-by: Christian Harries <68507104+ChristianHrs@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-12-15 06:12:12 +00:00
Miss Islington (bot)
18bd88f899
[3.13] gh-127529: Correct asyncio's accept_connection behaviour for handling ConnectionAbortedError (GH-127532) (#142738)
gh-127529: Correct asyncio's `accept_connection` behaviour for handling `ConnectionAbortedError` (GH-127532)
(cherry picked from commit 830e10651b)

Co-authored-by: jb2170 <email@jb2170.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-12-15 05:44:52 +00:00
Peter Bierma
5569ffedd8
[3.13] gh-141004: Add a CI job ensuring that new C APIs include documentation (GH-142102) (GH-142248)
* gh-141004: Add a CI job ensuring that new C APIs include documentation (GH-142102)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
(cherry picked from commit 1a7824a927)

* [3.13] gh-141004: Add a CI job ensuring that new C APIs include documentation (GH-142102)
(cherry picked from commit 1a7824a927)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>

* Update Tools/check-c-api-docs/ignored_c_api.txt

---------

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-12-14 22:19:48 -05:00
Miss Islington (bot)
13d9b0c1c4
[3.13] gh-142724: fix error path in _PyPegen_raise_tokenizer_init_error (GH-142725) (#142727)
Co-authored-by: AZero13 <gfunni234@gmail.com>
2025-12-14 22:35:54 +00:00
Miss Islington (bot)
e72ee65adf
[3.13] gh-106318: Add examples for str.isnumeric() (GH-142680) (#142716)
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-12-14 18:57:38 +00:00
decorator-factory
d2ba756912
[3.13] gh-142411: Change documentation to reflect the new docstring adjustments in 3.13 (GH-142413) (#142690) 2025-12-14 14:22:33 +02:00
Serhiy Storchaka
d94a1811e6
[3.13] gh-142681: Improve unicodedata tests (GH-142682) (GH-142708) (GH-142710)
(cherry picked from commit f6ed94e70e)
(cherry picked from commit af7cca3c39)
2025-12-14 12:22:24 +00:00
Serhiy Storchaka
cf4265345f
[3.13] gh-142461: Move misplaced NEWS entries to an appropriate section (GH-142464) (GH-142688) (#142702) 2025-12-14 12:55:15 +02:00
Miss Islington (bot)
16ce69eab7
[3.13] gh-141938: document treatment of OSError raised by HTTPConnection.getresponse (GH-142339) (#142705)
gh-141938: document treatment of `OSError` raised by `HTTPConnection.getresponse` (GH-142339)
(cherry picked from commit 11aef219f5)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-12-14 10:18:08 +00:00
Bénédikt Tran
d209fd911e
[3.13] gh-142451: correctly copy HMAC attributes in HMAC.copy() (GH-142510) (#142701)
Partially cherry-picked from d3ef5ba34d
which ensures that the `block_size` attribute exists on the copy.
2025-12-14 09:36:26 +00:00
Bénédikt Tran
2249043874
[3.13] gh-142554: avoid divmod crashes due to bad _pylong.int_divmod (GH-142673) (#142697)
gh-142554: avoid `divmod` crashes due to bad `_pylong.int_divmod` (#142673)

(cherry picked from commit 4e4163676a)
2025-12-14 09:03:14 +00:00
Miss Islington (bot)
aa07232c6a
[3.13] Add 'Show translation source' to docs sidebar (GH-130355) (#142687)
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: Maciej Olko <maciej.olko@affirm.com>
2025-12-13 23:09:13 +00:00
Miss Islington (bot)
450f863ea6
[3.13] Add missing comma to tuple in except* docs (GH-142395) (#142684)
Co-authored-by: dr-carlos <77367421+dr-carlos@users.noreply.github.com>
2025-12-13 22:57:22 +00:00
Miss Islington (bot)
2b7b485c8d
[3.13] gh-142568: Fix eval() docs to use 'source' parameter name (GH-142644) (#142670)
gh-142568: Fix eval() docs to use 'source' parameter name (GH-142644)
(cherry picked from commit c865ab3781)

Co-authored-by: Joshua Ward <joshie@flewognetworks.wales>
2025-12-13 16:15:21 +00:00
Miss Islington (bot)
e7bb732d8b
[3.13] gh-142353: Isolate tests from personal GNU Readline init files (GH-142370) (#142635)
gh-142353: Isolate tests from personal GNU Readline init files (GH-142370)

Isolate tests from personal Readline init files using `INPUTRC=/dev/null` trick.
(cherry picked from commit f564654bae)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-12-13 10:58:43 +00:00
Peter Bierma
dc12380f60
[3.13] gh-142457: Support using 3.14 and 3.15 for generation scripts (GH-142499) 2025-12-12 13:09:42 -05:00
Stan Ulbrych
9b24418867
[3.13] gh-142571: Check for errors before calling each syscall in PyUnstable_CopyPerfMapFile() (GH-142460) (#142602)
Co-authored-by: AZero13 <gfunni234@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2025-12-11 22:08:08 +00:00
Miss Islington (bot)
60980eeded
[3.13] Use subcommand over sub-command in argparse docs (GH-142488) (#142588)
Use subcommand over sub-command in argparse docs (GH-142488)
(cherry picked from commit 387f88cac1)

Co-authored-by: Savannah Ostrowski <savannah@python.org>
2025-12-11 17:48:30 +00:00
Stan Ulbrych
71bdb38a8d
[3.13] gh-142278: Add granular change detection for platforms in CI (GH-142350) (#142578)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-12-11 16:44:05 +00:00
Kumar Aditya
fda856f368
[3.13] gh-142048: Fix lost gc allocations count on thread cleanup (GH… (#142506)
[3.13] gh-142048: Fix lost gc allocations count on thread cleanup (GH-142233)
(cherry picked from commit 49b1fb43f6)

Co-authored-by: Kevin Wang <kevmo314@gmail.com>
2025-12-11 15:07:38 +05:30
Miss Islington (bot)
813bcffffc
[3.13] GH-139436: Remove PDF and CHM from IDLE HelpSource (GH-140418) (#142551)
GH-139436: Remove PDF and CHM from IDLE HelpSource (GH-140418)
(cherry picked from commit c5825ff4c9)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-12-11 02:15:14 +00:00
Miss Islington (bot)
3e48fbef98
[3.13] [Docs] Fix typo in bdb: is_skipped_line to is_skipped_module (GH-141771) (#142548)
[Docs] Fix typo in bdb: `is_skipped_line` to `is_skipped_module` (GH-141771)
(cherry picked from commit e5adaafc52)

Co-authored-by: Guo Ci <zguoci@gmail.com>
2025-12-10 22:46:50 +00:00
Miss Islington (bot)
746f8ed65d
[3.13] gh-142489: Increase ssl_handshake_timeout in asyncio tests (GH-142523) (#142546)
gh-142489: Increase ssl_handshake_timeout in asyncio tests (GH-142523)

Replace SHORT_TIMEOUT with LONG_TIMEOUT for very slow CIs.
And add the HANDSHAKE_TIMEOUT constant.
(cherry picked from commit dc3ece2bc0)

Co-authored-by: Victor Stinner <vstinner@python.org>
2025-12-10 22:43:56 +00:00
Miss Islington (bot)
2b0cccec39
[3.13] gh-139927: Fix test_embed on OpenIndiana (GH-142514) (#142521)
gh-139927: Fix test_embed on OpenIndiana (GH-142514)

Avoid swprintf() function in Programs/_testembed.c since it doesn't
work as expected on OpenIndiana.
(cherry picked from commit c76cfe8d89)

Co-authored-by: Victor Stinner <vstinner@python.org>
2025-12-10 15:54:13 +00:00
Miss Islington (bot)
e96367da1f
[3.13] gh-142454: Make the JIT digest more deterministic by sorting the files in Tools/jit (GH-142455) (#142484)
gh-142454: Make the JIT digest more deterministic by sorting the files in Tools/jit (GH-142455)
(cherry picked from commit bcf90de8ba)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
Co-authored-by: Ken Jin <kenjin4096@gmail.com>
2025-12-09 18:50:32 +00:00
Miss Islington (bot)
ab8ac4b760
[3.13] gh-138061: Exclude __pycache__ directory from the computed digest in the JIT stencils (GH-138131) (#142481)
Co-authored-by: alm <alonme@users.noreply.github.com>
2025-12-09 18:16:19 +00:00
Serhiy Storchaka
24036f55e4
[3.13] gh-112527: Fix help text for required options in argparse (GH-112528) (GH-142477)
For optional arguments with required=True, the ArgumentDefaultsHelpFormatter
would always add a " (default: None)" to the end of the help text.
Since that's a bit misleading, it is removed with this commit.
(cherry picked from commit 1adb17b1a2)

Co-authored-by: Fabian Henze <32638720+henzef@users.noreply.github.com>
2025-12-09 17:36:24 +00:00
Serhiy Storchaka
55e16b74fd
[3.13] gh-142282 Fix winreg.QueryValueEx() under race condition (GH-142283) (GH-142456)
(cherry picked from commit 3ec941b364)

Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com>
2025-12-09 16:46:24 +02:00
Miss Islington (bot)
b2fff0ea85
[3.13] gh-105836: Fix asyncio.run_coroutine_threadsafe leaving underlying cancelled asyncio task running (GH-141696) (#142359)
gh-105836: Fix `asyncio.run_coroutine_threadsafe` leaving underlying cancelled asyncio task running (GH-141696)
(cherry picked from commit 14715e3a64)

Co-authored-by: Kaisheng Xu <iaalmsimon@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-12-09 20:15:50 +05:30
Sam Gross
85f48038aa
[3.13] gh-142342: Fix m68k assembler operand constraints for %fpcr access (gh-142343) (#142459)
On m68k, an fmove instruction accessing %fpcr may only move from
or to a data register or a memory operand. The constraint "g" also
permits the use of address registers, which is invalid. The correct
constraint is "dm". Beginning with GCC 15, the register allocator
picks an address register in the code which causes SIGILL during
runtime.
(cherry picked from commit 02c085d48b)

Co-authored-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Co-authored-by: Michael Karcher <github@mkarcher.dialup.fu-berlin.de>
2025-12-09 14:13:35 +00:00
Miss Islington (bot)
b57d69588c
[3.13] gh-68552: fix defects policy (GH-138579) (#142367)
Co-authored-by: Ivo Bellin Salarin <nilleb@users.noreply.github.com>
Co-authored-by: Martin Panter <vadmium@users.noreply.github.com>
Co-authored-by: Ivo Bellin Salarin <ivo@nilleb.com>
2025-12-09 07:39:03 +00:00
Miss Islington (bot)
e1a6727df6
[3.13] Fix typo in Tools/wasm/README.md (GH-142426) (GH-142430)
Fix typo in `Tools/wasm/README.md` (GH-142426)
(cherry picked from commit 719d7960e2)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-12-08 20:54:12 +00:00