4 Commits
Author SHA1 Message Date
Miss Islington (bot)andMark Dickinson 1667a6c2ac [3.15] Fix a stale link to the math.integer.isqrt() correctness proof (GH-154685) (#154698)
(cherry picked from commit b86a41cbf6)

Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
2026-07-25 15:17:11 +00:00
Miss Islington (bot)andSerhiy Storchaka cca9d1c362 [3.15] gh-153200: Fix math.isqrt() for int subclasses with overridden comparison operators (GH-153203) (GH-153223)
The final check-and-correct comparison in the arbitrary precision path
could call a comparison operator overridden in an int subclass.
Compare by value with int's tp_richcompare.
(cherry picked from commit 3a1b5473f2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-07-06 19:17:26 +00:00
Karolina SurmaandVictor Stinner 1887a95f51 gh-128341: Use _Py_ABI_SLOT in stdlib modules (#145770)
Rename from _Py_INTERNAL_ABI_SLOT to _Py_ABI_SLOT
and define the macro using _PyABIInfo_DEFAULT.

Use the ABI slot in stdlib extension modules to enable running
a check of ABI version compatibility.

_tkinter, _tracemalloc and readline don't use the slots, hence they need
explicit handling.

Co-authored-by: Victor Stinner <vstinner@python.org>
2026-03-24 17:47:55 +00:00
Serhiy Storchaka dcf3cc5796 gh-81313: Add the math.integer module (PEP-791) (GH-133909) 2025-10-31 16:13:43 +02:00