Get locals from calling namespace in Python
Get locals from calling namespace in Python Question: I want to retrieve the local variables from Python from a called function. Is there any way to do this? I realize this isn’t right for most programming, but I am basically building a debugger. For example: def show_locals(): # put something in here that shows local_1. …