Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
60
class
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
67
class
BreakingRepr(object):
68
def
__repr__(self):
Callers
nothing calls this directly
Calls
3
group
Method · 0.80
break_
Method · 0.80
text
Method · 0.45
Tested by
no test coverage detected