I'm rather new to python and I'm wondering how local variables work. Let's start with an example of a simple method:
def do_sth():
local_dict = { 'a': 1, 'b': 2, 'c': 3, ... }
...
Let's assume that local_dict is used like a sort of const variable. And here's the question: it is created every time when do_sth() is invoked or it is created once and is kept somewhere in do_sth() internals?