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

Function _exception_pprint

IPython/lib/pretty.py:817–823  ·  view source on GitHub ↗

Base pprint for all exceptions.

(obj, p, cycle)

Source from the content-addressed store, hash-verified

815
816
817def _exception_pprint(obj, p, cycle):
818 """Base pprint for all exceptions."""
819 name = getattr(obj.__class__, '__qualname__', obj.__class__.__name__)
820 if obj.__class__.__module__ not in ('exceptions', 'builtins'):
821 name = '%s.%s' % (obj.__class__.__module__, name)
822
823 p.pretty(CallExpression(name, *getattr(obj, 'args', ())))
824
825
826#: the exception base

Callers

nothing calls this directly

Calls 2

CallExpressionClass · 0.85
prettyMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…