From CS 61A Wiki
Revision as of 10:54, 27 May 2014 by Axis
An environment consists of a sequence of frames.
In the following code:
x = 1 y = 2 def outer(): x = 3 y = 4 def inner(): x = 5 y = 6 return inner outer()()
the sequence of frames that makes up the environment of
global. Here are the bindings in each frame: