Is there any way to affect locals at runtime?
How does exec work with locals?
How can I get the values of the locals of a function after it has been executed? Python get locals of another function and set them global How does python import order affect names? Add to locals() in Python 3.2+? Why is using thread locals in Django bad? Django using locals() locals().update(dictionary) doesn't add all the variables What does locals()['_[1]'] mean in Python? Can't set a local variable in python directly through `locals()` Any difference between dir() and locals() in Python? How can I pass my locals and access the variables directly from another function? Getting locals in given order with Python Modify *existing* variable in `locals()` or `frame.f_locals` Python: find types of keys in locals() Why are my locals not being updated outside rof? Any way to modify locals dictionary? Explain locals() and exactly how it works Don't understand why my input does not take affect in Python 3 How do I return locals() and then re-define them in another function? Update locals from inside a function Javascript equivalent of Python's locals()? Does the inaccessible `.0` variable in `locals()` affect memory or performance? Python logging with thread locals When is the locals dictionary set? Python: Using locals() to print dictionary value `For x in locals():` -- RuntimeError: Why does locals() change size? Affect the class used to called a function Create class instance variables using a locals()['some_string'] like approach Get locals from calling namespace in Python