When a user-defined function is called, what is the parent of the frame that is created?
Answer
The frame created has the same parent as that function.
Tags
#python #sicp
Question
When a user-defined function is called, what is the parent of the frame that is created?
Answer
?
Tags
#python #sicp
Question
When a user-defined function is called, what is the parent of the frame that is created?
Answer
The frame created has the same parent as that function.
If you want to change selection, open original toplevel document below and click on "Move attachment"
Parent (intermediate) annotation
Open it Functions without
parent annotations were defined in the global environment. When a user-defined
function is called, the frame created has the same parent as that function.
Original toplevel document
1.6 Higher-Order Functions =f1]
Function values each have a new annotation that we will include in environment
diagrams from now on, a parent. The parent of a function value is the first
frame of the environment in which that function was defined. <span>Functions without
parent annotations were defined in the global environment. When a user-defined
function is called, the frame created has the same parent as that function.
Subsequently, the name sqrt_update resolves to this newly defined function,
which is passed as an argument to improve . Within the body of
improve , we must apply our update fun
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.