I would like to iteratively convert a dictionary into matching global variables like shown below:
# starting dictionary
parameters = {
'a': 3,
'b': 4
}
# result
a = 3
b = 4
now I know quite well the caveats associated with global variables: this is not meant to be a "production" solution but rather a way to use the considerable existing code base for optimization purposes without implementing a heavy restructuring.
any ideas?