MCPcopy Index your code
hub / github.com/ipython/ipython / __call__

Method __call__

IPython/core/doctb.py:436–445  ·  view source on GitHub ↗

This hook can replace sys.excepthook (for Python 2.1 or higher).

(self, etype: Any = None, evalue: Any = None, etb: Any = None)

Source from the content-addressed store, hash-verified

434 # Changed so an instance can just be called as VerboseTB_inst() and print
435 # out the right info on its own.
436 def __call__(self, etype: Any = None, evalue: Any = None, etb: Any = None) -> None:
437 """This hook can replace sys.excepthook (for Python 2.1 or higher)."""
438 if etb is None:
439 self.handler()
440 else:
441 self.handler((etype, evalue, etb))
442 try:
443 self.debugger()
444 except KeyboardInterrupt:
445 print("\nKeyboardInterrupt")

Callers

nothing calls this directly

Calls 2

handlerMethod · 0.95
debuggerMethod · 0.95

Tested by

no test coverage detected