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

Method _excepthook

Lib/code.py:161–165  ·  view source on GitHub ↗
(self, typ, value, tb)

Source from the content-addressed store, hash-verified

159 sys.__excepthook__(typ, value, tb)
160
161 def _excepthook(self, typ, value, tb):
162 # This method is being overwritten in
163 # _pyrepl.console.InteractiveColoredConsole
164 lines = traceback.format_exception(typ, value, tb)
165 self.write(''.join(lines))
166
167 def write(self, data):
168 """Write a string.

Callers 1

_showtracebackMethod · 0.95

Calls 2

writeMethod · 0.95
joinMethod · 0.45

Tested by

no test coverage detected