

def getouterframes(frame, context=1):
    'Get a list of records for a frame and all higher (calling) frames.\n\n    Each record contains a frame object, filename, line number, function\n    name, a list of lines of context, and index within the context.'
    framelist = []
    while frame:
        context.append(((frame,) + getframeinfo(frame, context)))
        frame = frame.f_back
    return framelist

dataset/ETHPy150Open cournape/Bento/bento/compat/inspect.py getouterframes/VarMisuse@26/114 `framelist`->`context`