Re:Faster CPython (2021) [pdf]
by staticassertion on Sunday January 23, 2022 @09:36PM
(#30053050)
All that means is that you get more exceptions raised when you use ==. It doesn't help performance at all, it doesn't even really confer anything about types, only that __eq__ is implemented between fewer types.
[ Parent
| on HN ]
Re:Faster CPython (2021) [pdf]
by anticensor on Saturday February 05, 2022 @10:38AM
(#30222101)
Python exceptions are low-cost. It has to be that way because every for loop in Python throws an exception.