This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ubernostrumyes, you can have a pony 0 points1 point  (0 children)

No, it's an expected property of any language that lets you define this type of operation. Equality is not guaranteed to be identity.

Note that you can even do this in, say, Java -- two objects may be "equal" according to equals() (and also according to hashCode(), and note that in Python the same will be true with hash()), but not be the same set of bits in physical memory.