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

Function _defaultdict_pprint

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

Source from the content-addressed store, hash-verified

817
818
819def _defaultdict_pprint(obj, p, cycle):
820 name = obj.__class__.__name__
821 with p.group(len(name) + 1, name + '(', ')'):
822 if cycle:
823 p.text('...')
824 else:
825 p.pretty(obj.default_factory)
826 p.text(',')
827 p.breakable()
828 p.pretty(dict(obj))
829
830def _ordereddict_pprint(obj, p, cycle):
831 name = obj.__class__.__name__

Callers

nothing calls this directly

Calls 4

groupMethod · 0.80
prettyMethod · 0.80
breakableMethod · 0.80
textMethod · 0.45

Tested by

no test coverage detected