Modifying attributes in __eq__ is a strange side effect. See comment below.