Hi, I have a question regarding the classes. I understand that classes are hasbhable by default in python but not immutable. I am able to use class as a key in a dictionary. To my understanding dictionary keys needs to be immutable and hashable at the same time right? Below class is not immutable but it became a key, how is that?
class Example:
def __init__(self, var):
self.var = var
def method1(self):
return self.var
myobj = Example("some_string")
my_dict = {myobj: 2}```
So, because