You're quite right, but if you don't implement __eq__, the hash of an object is simply a random integer (I suppose generated from the address of the object).

Alternatively, if you want a quick hash, you can use hash(str(obj)) (if you implemented __str__ or __repr__).