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

Method showtraceback

Lib/idlelib/pyshell.py:735–741  ·  view source on GitHub ↗

Extend base class method to reset output properly

(self)

Source from the content-addressed store, hash-verified

733 tkconsole.showprompt()
734
735 def showtraceback(self):
736 "Extend base class method to reset output properly"
737 self.tkconsole.resetoutput()
738 self.checklinecache()
739 InteractiveInterpreter.showtraceback(self)
740 if self.tkconsole.getvar("<<toggle-jit-stack-viewer>>"):
741 self.tkconsole.open_stack_viewer()
742
743 def checklinecache(self):
744 "Remove keys other than '<pyshell#n>'."

Callers 5

runcodeMethod · 0.95
runcodeMethod · 0.45
runMethod · 0.45
runcodeMethod · 0.45

Calls 4

checklinecacheMethod · 0.95
resetoutputMethod · 0.80
open_stack_viewerMethod · 0.80
getvarMethod · 0.45

Tested by

no test coverage detected