edgedb-python icon indicating copy to clipboard operation
edgedb-python copied to clipboard

Object's __hash__ and __eq__ are out of sync

Open 1st1 opened this issue 4 years ago • 1 comments

Object.__hash__ takes into account all fetched pointers, essentially the hashing is similar to tuples.

Object.__eq__ and other compare operators compare by object's EdgeDB ID.

1st1 avatar Nov 03 '20 21:11 1st1

If I remember correctly the plan is to no longer use implicit ids in this driver so Object.__eq__ should probably change to mimic tuples. Does this sound right?

fmoor avatar Jul 27 '22 21:07 fmoor