2 ms·
It doesn't quite default to False, since every object is still equal to itself. The consequence is that people use == for identity equality sometimes - often no
by int_19h 4y ago
It doesn't quite default to False, since every object is still equal to itself. The consequence is that people use == for identity equality sometimes - often not fully intentionally, e.g. by using objects as dict keys directly without using id().
But, conversely, a design that doesn't allow == for everything means that value-equality and reference-equality dicts would have to be different, as well.