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

Method _repr_pretty_

IPython/lib/pretty.py:587–595  ·  view source on GitHub ↗
(self, p, cycle)

Source from the content-addressed store, hash-verified

585 self.value = value
586
587 def _repr_pretty_(self, p, cycle):
588 base_repr = repr(self.value)
589 if base_repr[:1] in 'uU':
590 base_repr = base_repr[1:]
591 prefix = 'ur'
592 else:
593 prefix = 'r'
594 base_repr = prefix + base_repr.replace('\\\\', '\\')
595 p.text(base_repr)
596
597
598def _default_pprint(obj, p, cycle):

Callers

nothing calls this directly

Calls 2

replaceMethod · 0.80
textMethod · 0.45

Tested by

no test coverage detected