class A(object):

    def __eq__(self, other):
        return True
one, two = A(), A()
d = {one: 'one'}
one == two
d[one]
d[two]
hash(set())
I'm able to use a mutable object as a dictionary key in python. Is this not disallowed?