MCPcopy Create free account
hub / github.com/ipython/ipython / __call__

Method __call__

IPython/core/ultratb.py:1282–1291  ·  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

1280 # Changed so an instance can just be called as VerboseTB_inst() and print
1281 # out the right info on its own.
1282 def __call__(self, etype=None, evalue=None, etb=None):
1283 """This hook can replace sys.excepthook (for Python 2.1 or higher)."""
1284 if etb is None:
1285 self.handler()
1286 else:
1287 self.handler((etype, evalue, etb))
1288 try:
1289 self.debugger()
1290 except KeyboardInterrupt:
1291 print("\nKeyboardInterrupt")
1292
1293
1294#----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

handlerMethod · 0.95
debuggerMethod · 0.95

Tested by

no test coverage detected