Returns an object representing the frame of the function of the given name.
This frame will be searched upward from the current frame
from libtbx import pyframe
for j in xrange(i):
f = pyframe.named('f')
if f.j == 3: ....
This is particularly useful for conditional breakpoints in the WingIDE debugger.
Let's say we have a function 'test' which tests a function 'clever_algorithm' and that
one wants to put a breakpoint in the latter that only triggers
for one particular test (that we know is going to fail e.g.). Let's say tests are
identified by a local variable 'idx' in function 'test'. Then we can put a conditional
breakpoint somewhere in function 'clever_algorithm' like so:
Returns an object representing the frame of the function that is n steps up in
the calling stack, starting from the function that called this function 'up'.
Thus n=0 corresponds to the function F that called this, n=1 to the function
that called F, etc.