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

Function _repr_pprint

IPython/lib/pretty.py:792–801  ·  view source on GitHub ↗

A pprint that just redirects to the normal repr function.

(obj, p, cycle)

Source from the content-addressed store, hash-verified

790
791
792def _repr_pprint(obj, p, cycle):
793 """A pprint that just redirects to the normal repr function."""
794 # Find newlines and replace them with p.break_()
795 output = repr(obj)
796 lines = output.splitlines()
797 with p.group():
798 for idx, output_line in enumerate(lines):
799 if idx:
800 p.break_()
801 p.text(output_line)
802
803
804def _function_pprint(obj, p, cycle):

Callers 3

prettyMethod · 0.85
_default_pprintFunction · 0.85
_type_pprintFunction · 0.85

Calls 3

groupMethod · 0.80
break_Method · 0.80
textMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…