2 Commits
Author SHA1 Message Date
Serhiy Storchaka 3a1b5473f2 gh-153200: Fix math.isqrt() for int subclasses with overridden comparison operators (GH-153203)
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.
2026-07-06 21:10:23 +03:00
Serhiy Storchaka dcf3cc5796 gh-81313: Add the math.integer module (PEP-791) (GH-133909) 2025-10-31 16:13:43 +02:00