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

Method __call__

IPython/core/ultratb.py:1063–1072  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1061 # Changed so an instance can just be called as VerboseTB_inst() and print
1062 # out the right info on its own.
1063 def __call__(self, etype=None, evalue=None, etb=None):
1064 """This hook can replace sys.excepthook (for Python 2.1 or higher)."""
1065 if etb is None:
1066 self.handler()
1067 else:
1068 self.handler((etype, evalue, etb))
1069 try:
1070 self.debugger()
1071 except KeyboardInterrupt:
1072 print("\nKeyboardInterrupt")
1073
1074
1075# ----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

handlerMethod · 0.95
debuggerMethod · 0.95

Tested by

no test coverage detected