Difference between revisions of "Environment"

From CS 61A Wiki
Jump to: navigation, search
[checked revision][checked revision]
m (Reverted edits by Demo (talk) to last revision by Axis)
m ({{Sufficient-class}})
Line 1: Line 1:
 +
{{Sufficient-class}}
 
An '''environment''' consists of a sequence of [[frame]]s.
 
An '''environment''' consists of a sequence of [[frame]]s.
  

Revision as of 12:46, 4 June 2014

An environment consists of a sequence of frames.

Example

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 inner is innerouterglobal.

See also