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

Method _repr_pretty_

IPython/lib/tests/test_pretty.py:61–65  ·  view source on GitHub ↗
(self, p, cycle)

Source from the content-addressed store, hash-verified

59
60class Breaking(object):
61 def _repr_pretty_(self, p, cycle):
62 with p.group(4,"TG: ",":"):
63 p.text("Breaking(")
64 p.break_()
65 p.text(")")
66
67class BreakingRepr(object):
68 def __repr__(self):

Callers

nothing calls this directly

Calls 3

groupMethod · 0.80
break_Method · 0.80
textMethod · 0.45

Tested by

no test coverage detected