3 ms·
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, o
by staticassertion 5y ago
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.
- anticensor 5y agoPython exceptions are low-cost. It has to be that way because every for loop in Python throws an exception.