Commit a9a91d0
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)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent d87ee02 commit a9a91d0
3 files changed
Lines changed: 33 additions & 3 deletions
File tree
- Lib/test
- Misc/NEWS.d/next/Library
- Modules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
241 | 254 | | |
242 | 255 | | |
243 | 256 | | |
| |||
1117 | 1130 | | |
1118 | 1131 | | |
1119 | 1132 | | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
1120 | 1143 | | |
1121 | 1144 | | |
1122 | 1145 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1793 | 1793 | | |
1794 | 1794 | | |
1795 | 1795 | | |
1796 | | - | |
| 1796 | + | |
| 1797 | + | |
1797 | 1798 | | |
1798 | 1799 | | |
1799 | 1800 | | |
1800 | 1801 | | |
1801 | | - | |
| 1802 | + | |
1802 | 1803 | | |
1803 | | - | |
| 1804 | + | |
1804 | 1805 | | |
1805 | 1806 | | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
1806 | 1810 | | |
1807 | 1811 | | |
1808 | 1812 | | |
| |||
0 commit comments