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

Function _function_pprint

IPython/lib/pretty.py:804–814  ·  view source on GitHub ↗

Base pprint for all functions and builtin functions.

(obj, p, cycle)

Source from the content-addressed store, hash-verified

802
803
804def _function_pprint(obj, p, cycle):
805 """Base pprint for all functions and builtin functions."""
806 name = _safe_getattr(obj, '__qualname__', obj.__name__)
807 mod = obj.__module__
808 if mod and mod not in ('__builtin__', 'builtins', 'exceptions'):
809 name = mod + '.' + name
810 try:
811 func_def = name + str(signature(obj))
812 except ValueError:
813 func_def = name
814 p.text('<function %s>' % func_def)
815
816
817def _exception_pprint(obj, p, cycle):

Callers

nothing calls this directly

Calls 2

_safe_getattrFunction · 0.85
textMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…