Re:Statically-typed error handling in Python using Mypy
by staticassertion on Monday December 09, 2019 @01:52AM
(#21740870)
Sorry, I'm not sure I understand at all the difference between this and the 'wat' stuff.
None (as far as I remember) of the common "wat" examples about JS are interpreter implementation details, but specified behavior.
I'm mildly curious why CPython chooses to implement it this way, but if I had to guess: I'm assuming it is to provide a stable order between objects of different classes with the same hash() value. Hash-value being what I suspect is what the quoted answer misrepresents as "their address" (the address being in CPython the default fallback for objects that do not implement a hash() function), and being a good candidate to establish an arbitrary order.