March 2003
Intermediate to advanced
656 pages
39h 30m
English
_getframe
_getframe(depth=0)Returns a frame object from the call stack. When
depth is 0, the result
is the frame of _getframe’s
caller. When depth is
1, the result is the frame of the
caller’s caller, and so forth. The leading
_ in
_getframe’s name is a reminder
that it’s a private system function, to be used for
internal specialized purposes. Chapter 17 covers
ways in which you can use frame objects for debugging.