I have come across this concept of 'execution frames' in python while trying to understand what the inspect.currentframe()
function is actually doing. I only superficially understand what an execution frame is. Python docs say that it holds some administrative information for debugging purposes but doesn't really go into the details of what it is. I found this answer where the author tries to detail what a frame is internally but it looks suspiciously similar to the definition of a namespace in python - refer docs
Can anyone with the sufficient knowledge explain the inner workings of execution frames in detail? Why python uses them? How python uses them? Including some examples will really help. Thanks in advance.