Commit e4aef84
Simplify DataItem.__int__ and DataItem.__float__ by removing redundant type testing
PyNumber_Long and PyNumber_Float already contain such checks and optimisations (
[src](https://github.com/python/cpython/blob/main/Objects/abstract.c#L1516-L1518), [src](https://github.com/python/cpython/blob/main/Objects/abstract.c#L1595-L1597)).
PiperOrigin-RevId: 714930002
Change-Id: Ie2fdf540b40764af7550d65bf10e809067d30d011 parent 9f2b2ca commit e4aef84
1 file changed
+0
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | 96 | | |
100 | 97 | | |
101 | 98 | | |
| |||
113 | 110 | | |
114 | 111 | | |
115 | 112 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | 113 | | |
120 | 114 | | |
121 | 115 | | |
| |||
0 commit comments