I am not sure why there is difference when checking or comparing properties of object. Object construtor:
class FooBarObject():
def __init__(self, val_1, val_2):
self.val_1 = val_1
self.val_2 = val_2
Object is created:
obj = FooBarObject(val_1 = "gnd", val_2 = 10).
I have noticed that I get different results when:
obj.val_1 is "gnd"
obj.val_1 == "gnd"
>>> False
>>> True
What am I doing wrong here?