difference between locals() and globals() and dir() in python
Any difference between dir() and locals() in Python? What's the difference between globals(), locals(), and vars()?
Why parameters are passed outside the parenthesis () in globals(), locals() and vars() in Python? Difference in "dir" between Python 2 and 3 What's the difference between dir() and __dir__? What are `globals` and `locals` parameters in Python __import__ function for? Python locals() and globals() are the same? Add to locals() in Python 3.2+? Django using locals() globals and locals in python exec() What does locals()['_[1]'] mean in Python? Why does my function only see some of my globals? Find and remove a Python object from locals() or globals() eval globals and locals argument do not work as expected Why globals() doesn't work How to execute a callable in a given context (locals and globals)? Why is globals() a function in Python? When using globals in a class it does not return module level globals instead it will just Error Can exception handler get access to globals and locals variables at exception raise? In Python, import a function using globals() Why set is not in locals, globals or vars dictionaries What is the difference between locals and globals when using Python's eval()? Is it possible to get locals() and globals() from an upper stack frame? Python: when globals().update works and when it doesn't Is there are any way make locals() and globals() defaultdict-like locals() and globals() in stack trace on exception (Python) Using globals() to create class object Python globals, locals, and UnboundLocalError When is the locals dictionary set? What's the difference between locals() and globals()