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

Function _counter_pprint

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

Source from the content-addressed store, hash-verified

845
846
847def _counter_pprint(obj, p, cycle):
848 name = obj.__class__.__name__
849 with p.group(len(name) + 1, name + '(', ')'):
850 if cycle:
851 p.text('...')
852 elif len(obj):
853 p.pretty(dict(obj))
854
855for_type_by_name('collections', 'defaultdict', _defaultdict_pprint)
856for_type_by_name('collections', 'OrderedDict', _ordereddict_pprint)

Callers

nothing calls this directly

Calls 3

groupMethod · 0.80
prettyMethod · 0.80
textMethod · 0.45

Tested by

no test coverage detected