MCPcopy Index your code
hub / github.com/RustPython/RustPython / clear_frames

Function clear_frames

Lib/traceback.py:267–275  ·  view source on GitHub ↗

Clear all references to local variables in the frames of a traceback.

(tb)

Source from the content-addressed store, hash-verified

265
266
267def clear_frames(tb):
268 "Clear all references to local variables in the frames of a traceback."
269 while tb is not None:
270 try:
271 tb.tb_frame.clear()
272 except RuntimeError:
273 # Ignore the exception raised if the frame is still executing.
274 pass
275 tb = tb.tb_next
276
277
278class FrameSummary:

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected