I wonder how to do something like this in python:
d = {'a': 3}
a_value_ref = d['a']
a_value_ref = 6
assert d['a'] == 6
I want to first compute a reference to a specific value in a layered dict, and then change it using this mechanism. Is it possible? Easy to use C / C ++. Thank you for your help.
source
share