the scope of a local name is limited to the body of the user-defined function that defines it. When a name is no longer accessible, it is out of scope.
Tags
#python #sicp
Question
What does it mean to be "out of scope"?
Answer
?
Tags
#python #sicp
Question
What does it mean to be "out of scope"?
Answer
the scope of a local name is limited to the body of the user-defined function that defines it. When a name is no longer accessible, it is out of scope.
If you want to change selection, open original toplevel document below and click on "Move attachment"
Parent (intermediate) annotation
Open it the scope of a local name is limited to the body of the
user-defined function that defines it. When a name is no longer accessible, it
is out of scope.
Original toplevel document
1.3 Defining New Functions ould be confused with the parameter x in
sum_squares . Critically, this is not the case: the binding for x in
different local frames are unrelated. The model of computation is carefully
designed to ensure this independence.
We say that <span>the scope of a local name is limited to the body of the
user-defined function that defines it. When a name is no longer accessible, it
is out of scope. This scoping behavior isn't a new fact about our model; it is a
consequence of the way environments work.
1.3.5 Choosing Names
The interchangeability of names does not imply t
Summary
status
not learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised on
scheduled repetition
scheduled repetition interval
last repetition or drill
Details
No repetitions
Discussion
Do you want to join discussion? Click here to log in or create user.