I recently found out how to dynamically create variables in python through this method:
vars()[\'my_variable\'] = \'Some Value\'
Thus creat
There is no guarantee that vars()['myvariable'] = 'Some value' and my variable = 'Some value' have the same effect. From the documentation:
Without an argument, vars() acts like locals(). Note, the locals dictionary is only useful for reads since updates to the locals dictionary are ignored.
This code is simply wrong.