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

Method _repr_pretty_

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

Source from the content-addressed store, hash-verified

38
39class MyDict(dict):
40 def _repr_pretty_(self, p, cycle):
41 p.text("MyDict(...)")
42
43class MyObj(object):
44 def somemethod(self):

Callers

nothing calls this directly

Calls 1

textMethod · 0.45

Tested by

no test coverage detected