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

Function _counter_pprint

IPython/lib/pretty.py:925–932  ·  view source on GitHub ↗
(obj, p, cycle)

Source from the content-addressed store, hash-verified

923 p.pretty(cls_ctor(list(obj)))
924
925def _counter_pprint(obj, p, cycle):
926 cls_ctor = CallExpression.factory(obj.__class__.__name__)
927 if cycle:
928 p.pretty(cls_ctor(RawText("...")))
929 elif len(obj):
930 p.pretty(cls_ctor(dict(obj.most_common())))
931 else:
932 p.pretty(cls_ctor())
933
934
935def _userlist_pprint(obj, p, cycle):

Callers

nothing calls this directly

Calls 3

RawTextClass · 0.85
factoryMethod · 0.80
prettyMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…