MCPcopy Index your code
hub / github.com/python/cpython / get_stack

Method get_stack

Lib/idlelib/debugger_r.py:94–102  ·  view source on GitHub ↗
(self, fid, tbid)

Source from the content-addressed store, hash-verified

92 self.idb.set_return(frame)
93
94 def get_stack(self, fid, tbid):
95 frame = frametable[fid]
96 if tbid is None:
97 tb = None
98 else:
99 tb = tracebacktable[tbid]
100 stack, i = self.idb.get_stack(frame, tb)
101 stack = [(wrap_frame(frame2), k) for frame2, k in stack]
102 return stack, i
103
104 def run(self, cmd):
105 import __main__

Callers

nothing calls this directly

Calls 2

wrap_frameFunction · 0.85
get_stackMethod · 0.45

Tested by

no test coverage detected