Skip to content

[3.14] gh-153970: Fix str() of CalledProcessError when returncode is not an integer (GH-153971) - #155923

Closed
americano212 wants to merge 3096 commits into
python:mainfrom
americano212:backport-153970-3.14
Closed

[3.14] gh-153970: Fix str() of CalledProcessError when returncode is not an integer (GH-153971)#155923
americano212 wants to merge 3096 commits into
python:mainfrom
americano212:backport-153970-3.14

Conversation

@americano212

@americano212 americano212 commented Aug 17, 2026

Copy link
Copy Markdown

(cherry picked from commit 7c653e2)

Co-authored-by: Vyron Vasileiadis hi@fedonman.com

Resolved a conflict in CalledProcessError.__str__(): this branch does not have the command quoting change from GH-151486, so the else branch keeps '%s' instead of %r for the command.

miss-islington and others added 30 commits July 15, 2026 03:33
GH-153717) (GH-153738)

Compute probe coordinates from each widget's own realized geometry
instead of hardcoding pixels such as (5, 5) or width - 5, which land on
a different element, or miss it entirely, at a high display scaling.
(cherry picked from commit 87411d0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Document the panel class and its error exception in curses.panel.rst,
using the real lowercase panel name.

(cherry picked from commit 560ff8e)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Separate tests for module-level API and for the MimeTypes class.
* Add tests for mimetypes.init() and MimeTypes() with knownfiles and with
  explicitly passed files.

(cherry picked from commit b23646a)
…() and unpack_from() (GH-153650) (GH-153753)

(cherry picked from commit 1706d14)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…H-150676) (GH-153757)

Use the directive and the role "class" instead of "data" for classes
exposed in the types module.

(cherry picked from commit bc05544)

Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
…ocumentation (GH-153647) (GH-153774)

Refresh the narrative "Tkinter life preserver" and "Handy reference"
sections to match the overhauled reference (gh-86726 and gh-153549).

* Rework "The packer" into a general "Geometry management" section
  covering grid, pack and place, and cross-link it with the Grid, Pack
  and Place reference classes.
* Rework "The window manager" and "Coupling widget variables", replacing
  the dated App(Frame) examples with direct Tk() and ttk examples.
* Replace page-number citations to Ousterhout's book with links to the
  relevant Tk man pages.
* Modernize the tkinter.ttk front matter and its Tcl/Tk links, and add
  cross-references between the two documents.
* Reconcile the "Packer options" and "Tk option data types" lists with
  the reference, and fill in the empty Entry index list.
* Fix the malformed target-selection list in tkinter.dnd.
(cherry picked from commit 93beea7)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…od summary (GH-153629) (#153779)

(cherry picked from commit b4662e8)

Co-authored-by: darida12321 <73121369+darida12321@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
… (gh-153815)

Avoids potential deadlocks with C++ static local initialization in
extensions that call PyUnicode_InternFromString during one-time
initialization.

(cherry picked from commit f62050d)

Co-authored-by: Sam Gross <colesbury@gmail.com>
…H-145522) (#153824)

(cherry picked from commit 2e94f14)

Co-authored-by: Kai (Kazuya Ito) <kazya.ito.dream@gmail.com>
…awl-delay and Request-rate (GH-153405) (GH-153831)

str.isdigit() returned True for non-decimal Unicode digits such as
U+00B2 SUPERSCRIPT TWO, which int() then rejected with ValueError.
(cherry picked from commit 597ec2d)

Co-authored-by: tonghuaroot (童话) <tonghuaroot@gmail.com>
GH-153627) (GH-153835)

Normalize bytes format strings to str before using them as the cache key,
so that equal str and bytes formats no longer collide and get compared.
(cherry picked from commit 190d2ff)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…) (#153848)

(cherry picked from commit 8ca85b5)

Co-authored-by: Stan Ulbrych <stan@python.org>
… docs (GH-153851) (#153860)

gh-153853: Fix parameter name of calendar.setfirstweekday() in docs (GH-153851)
(cherry picked from commit 1736526)

Co-authored-by: Ibrahim Shaqqou <101660458+IbrahimShaqqou@users.noreply.github.com>
GH-150578) (GH-153819)

(cherry picked from commit f586fd9)

Co-authored-by: Brij Kapadia <97006829+brijkapadia@users.noreply.github.com>
(cherry picked from commit d095ceb)

Co-authored-by: Alexey Katsman <alex2007508@gmail.com>
Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
…H-150413) (GH-153787)

(cherry picked from commit 12af26d)

Co-authored-by: Edward Xu <xuxiangad@gmail.com>
…under free-threading (gh-151768) (gh-153789)

In free-threading builds, concurrent calls to sys.getdlopenflags() and
sys.setdlopenflags() race on interp->imports.dlopenflags.  Fix by
using FT_ATOMIC_LOAD_INT_RELAXED / FT_ATOMIC_STORE_INT_RELAXED in
_PyImport_GetDLOpenFlags and _PyImport_SetDLOpenFlags, consistent with
how analogous interpreter-state integer fields (lazy_imports_mode,
pystats_enabled) are protected.

Relaxed ordering is correct here: dlopenflags is a standalone config
integer with no ordering relationship to other memory.

(cherry picked from commit cde31ec)

Co-authored-by: Jiucheng(Oliver) <git.jiucheng@gmail.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
…132814) (GH-135689) (GH-144402) (GH-146033) (GH-142957) (GH-153791)

Combined backport of PRs from main branch, fixing free-threading data-races in itertools:

* gh-123471: make concurrent iteration over `itertools.cycle` safe under free-threading (gh-131212)
* gh-123471: Make itertools.product and itertools.combinations thread-safe (GH-132814)
* gh-123471: Make itertools.chain thread-safe (gh-135689)
* gh-123471: Make concurrent iteration over `itertools.permutations` and `itertools.combinations_with_replacement` thread-safe (gh-144402)
* gh-123471: make concurrent iteration over itertools.accumulate thread-safe (gh-144486)
* gh-123471: Make `itertools.zip_longest` safe in the FT build (gh-146033)

(cherry picked from commit 26a1cd4)
(cherry picked from commit 847d1c2)
(cherry picked from commit 0533c1f)
(cherry picked from commit 009c8c0)
(cherry picked from commit 3a24856)
(cherry picked from commit 9214e3f)

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
) (#153870)

(cherry picked from commit d478cf8)
Co-authored-by: Ned Deily <nad@python.org>
…H-150586) (#153884)

gh-150583: Fix zstd compression level with digested ZstdDict (GH-150586)
(cherry picked from commit 0983642)

Co-authored-by: Rogdham <3994389+Rogdham@users.noreply.github.com>
…s` (GH-153900) (#153911)

gh-153899: Fix documented parameter names for `filecmp.cmpfiles` (GH-153900)

Update the `filecmp.cmpfiles()` docs to match its actual signature.
(cherry picked from commit 26e7c4f)

Co-authored-by: Vyron Vasileiadis <hi@fedonman.com>
…H-153894) (#153916)

Fix punctuation in `Doc/library/concurrent.interpreters.rst` (GH-153894)
(cherry picked from commit 6ebb22c)

Co-authored-by: Raúl Santos Quirós <130504291+raul-sq@users.noreply.github.com>
…pression list' in eval() docs (GH-153924)

(cherry picked from commit c5e97ed)

Co-authored-by: palakkhinvasara <109575264+palakkhinvasara@users.noreply.github.com>
…r` and `calendar.prcal` (GH-153927) (#153938)

gh-153926: Fix documented parameter name for `calendar.calendar` and `calendar.prcal` (GH-153927)

gh-153926: Fix documented parameter name for calendar.calendar and calendar.prcal

calendar.calendar() and calendar.prcal() are bound methods of the
module's TextCalendar instance, whose first parameter is named theyear,
but the documentation named it year, so the documented keyword raised
TypeError. Update the documentation to match the real signature, which
also matches the sibling month() and prmonth() functions.
(cherry picked from commit d12434b)

Co-authored-by: Vyron Vasileiadis <hi@fedonman.com>
…r` from `n` to `width` (GH-153942) (GH-153944)

(cherry picked from commit 7486c7b)

Co-authored-by: Marta <marta.podziewska@gmail.com>
Test `calendar.February` deprecation (GH-153893)

Calendar related tests now check if both deprecated constants surface the proper warnings.

* extended `test_deprecation_warning` to check `constants.February` as well
(cherry picked from commit 31c81e6)

Co-authored-by: vjabuilds <77214151+vjabuilds@users.noreply.github.com>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
) (GH-153952)

(cherry picked from commit 5200f11)

Co-authored-by: John <me@joh.ng>
…spect` (GH-153949)

(cherry picked from commit 87f8fc8)

Co-authored-by: Jan Kaliszewski <zuo@kaliszewski.net>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
…53961)

(cherry picked from commit 32cfc88)

Co-authored-by: Sam Katakouzinos <sam.katakouzinos@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.