I have a python script where I've printed the value of two variables. These are dash callback id's. An excerpt is:
ctx = dash.callback_context
changed_id = [p['prop_id'] for p in ctx.triggered][0]
order_id = changed_id.split('.')[0]
print(child['props']['id'])
print(order_id)
print(child['props']['id'] ==order_id)
The output is:
{'type': 'dynamic-order', 'index': 3}
{"index":3,"type":"dynamic-order"}
False
But when I copy and past the output of the first two lines and run them directly into the python3 interpreter I get:
>>> {'type': 'dynamic-order', 'index': 3}=={"index":3,"type":"dynamic-order"}
True
I would expect these should both return the same boolean value. How is it these values are different? Furthermore, why am I getting False in the script and how can I change it so that it evaluates to True?