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

Function _ordereddict_pprint

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

Source from the content-addressed store, hash-verified

828 p.pretty(dict(obj))
829
830def _ordereddict_pprint(obj, p, cycle):
831 name = obj.__class__.__name__
832 with p.group(len(name) + 1, name + '(', ')'):
833 if cycle:
834 p.text('...')
835 elif len(obj):
836 p.pretty(list(obj.items()))
837
838def _deque_pprint(obj, p, cycle):
839 name = obj.__class__.__name__

Callers

nothing calls this directly

Calls 3

groupMethod · 0.80
prettyMethod · 0.80
textMethod · 0.45

Tested by

no test coverage detected