FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.13] gh-153200: Fix math.isqrt() for int subclasses with overridden comparison operators (GH-153203) (GH-153225) by miss-islington · Pull Request #153226 · python/cpython · GitHub

Repository navigation

[3.13] gh-153200: Fix math.isqrt() for int subclasses with overridden comparison operators (GH-153203) (GH-153225) - #153226

Merged
serhiy-storchaka merged 1 commit into
python:3.13from
miss-islington:backport-a9a91d0-3.13
Jul 6, 2026
Merged

serhiy-storchaka merged 1 commit into
python:3.13from
miss-islington:backport-a9a91d0-3.13

Conversation

miss-islington commented Jul 6, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

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 3a1b547)
(cherry picked from commit a9a91d0)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Claude Fable 5 noreply@anthropic.com

…ridden comparison operators (pythonGH-153203) (pythonGH-153225)

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 3a1b547)
(cherry picked from commit a9a91d0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL