on-internet
← Community

Override equals but still have reference equality check

Stack Overflow ·

I have overridden equals in Python but I would still like to do a reference equality check. In Java, this is the difference between == and .equals. Does Python have a similar ability?

Comments

Sign in or sign up to comment and upvote.

No comments yet.