Skip to content

[3.15] gh-155486: Allow non-compact integers in TO_BOOL_INT (GH-155531) - #155699

Closed
marinelay wants to merge 927 commits into
python:mainfrom
marinelay:backport-cd98657-3.15
Closed

[3.15] gh-155486: Allow non-compact integers in TO_BOOL_INT (GH-155531)#155699
marinelay wants to merge 927 commits into
python:mainfrom
marinelay:backport-cd98657-3.15

Conversation

@marinelay

@marinelay marinelay commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Backport of GH-155531 to Python 3.15

(cherry picked from commit cd98657)

miss-islington and others added 30 commits July 14, 2026 22:55
…alue (pythonGH-153696) (python#153723)

pythongh-153695: Fix sqlite3.Row.__hash__ with an unhashable value (pythonGH-153696)
(cherry picked from commit b704b64)

Co-authored-by: tonghuaroot (童话) <tonghuaroot@gmail.com>
…3701) (python#153727)

Adds the PyRepl test to the Github CI configuration for Emscripten.
(cherry picked from commit 1b3914a)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
…153733) (python#153734)

Remove duplicate button_ok code in idlelib.textview (pythonGH-153733)
(cherry picked from commit c5530cc)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
…scaling (pythonGH-153717) (pythonGH-153737)

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>
python#153718)

(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>
…k_into() and unpack_from() (pythonGH-153650) (pythonGH-153699)

(cherry picked from commit 1706d14)

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

* 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)
…f a type object(pythonGH-150859) (python#153747)

pythongh-150858: fix data race while changing `__qualname__` of a type object(pythonGH-150859)
(cherry picked from commit 1ec6596)

Co-authored-by: Thomas Kowalski <thom.kowa@gmail.com>
…tate__` (pythonGH-150578) (python#153746)

pythongh-144774: Add critical section in `BaseException.__setstate__` (pythonGH-150578)
(cherry picked from commit f586fd9)

Co-authored-by: Brij Kapadia <97006829+brijkapadia@users.noreply.github.com>
…nter documentation (pythonGH-153647) (pythonGH-153773)

Refresh the narrative "Tkinter life preserver" and "Handy reference"
sections to match the overhauled reference (pythongh-86726 and pythongh-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>
…` method summary (pythonGH-153629) (python#153778)

(cherry picked from commit b4662e8)

Co-authored-by: darida12321 <73121369+darida12321@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
…ing (pythonGH-150413) (python#153788)

pythongh-150411: fix `gc_generation.count` race in free-threading (pythonGH-150413)
(cherry picked from commit 12af26d)

Co-authored-by: Edward Xu <xuxiangad@gmail.com>
…flags under free-threading (pythongh-151768) (python#153790)

pythongh-151644: Fix data race in sys.setdlopenflags/getdlopenflags under free-threading (pythongh-151768)

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>
…thongh-149164) (pythongh-153814)

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>
…der -bb (pythonGH-153627) (pythonGH-153834)

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>
…H-153780) (python#153847)

(cherry picked from commit 8ca85b5)

Co-authored-by: Stan Ulbrych <stan@python.org>
…y() in docs (pythonGH-153851) (python#153859)

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

Co-authored-by: Ibrahim Shaqqou <101660458+IbrahimShaqqou@users.noreply.github.com>
…gettarinfo() (pythonGH-151671) (python#153517)

Co-authored-by: Daniele Nicolodi <daniele@grinta.net>
pythonGH-153867) (python#153869)

Enable median() and percentile() functions.
(cherry picked from commit 34f109d)
Co-authored-by: Ned Deily <nad@python.org>
…ythonGH-153868) (python#153871)

cherry picked from commit d478cf8)
Co-authored-by: Ned Deily <nad@python.org>
…pythonGH-153875) (python#153876)

(cherry picked from commit 16d0c89)
Co-authored-by: Ned Deily <nad@python.org>
…Dict (pythonGH-150586) (python#153883)

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

Co-authored-by: Rogdham <3994389+Rogdham@users.noreply.github.com>
…nGH-153897) (python#153898)

Add versionadded tag to wave module getformat functions (pythonGH-153897)
(cherry picked from commit 7ce9eb1)

Co-authored-by: Elias Dorneles <eliasdorneles@gmail.com>
…mpfiles` (pythonGH-153900) (python#153910)

pythongh-153899: Fix documented parameter names for `filecmp.cmpfiles` (pythonGH-153900)

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

Co-authored-by: Vyron Vasileiadis <hi@fedonman.com>
…ythonGH-153894) (python#153915)

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

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

(cherry picked from commit c5e97ed)

Co-authored-by: palakkhinvasara <109575264+palakkhinvasara@users.noreply.github.com>
…ion (pythonGH-153922) (python#153931)

Fix duplicated words in "What's new in Python 3.15" documentation (pythonGH-153922)
(cherry picked from commit 2df69de)

Co-authored-by: Michael Newman <michael.b.newman@gmail.com>
…on (pythonGH-153880) (python#153886)

Fix duplicated words in the 'Coroutines and tasks' documentation (pythonGH-153880)
(cherry picked from commit cffcee4)

Co-authored-by: Michael Newman <michael.newman@avalabs.org>
…alendar` and `calendar.prcal` (pythonGH-153927) (python#153937)

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

pythongh-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>
@StanFromIreland

Copy link
Copy Markdown
Member

Please re-open this against the 3.15 branch.

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.

10 participants