def allFrameObjs():
 f = sys._getframe()
 objs = []
 while (f is not None):
  objs.append(f)
  objs.append(f.f_code)
  f = f.f_back
 return objs

def allFrameObjs ( ) : f = sys . _getframe ( ) objs = [ ] while ( f is not None ) : objs . append ( f ) objs . append ( f . f_code ) f = f . f_back return objs
return list of frame objects in current stack .