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

Function _ordereddict_pprint

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

Source from the content-addressed store, hash-verified

905 p.pretty(cls_ctor(obj.default_factory, dict(obj)))
906
907def _ordereddict_pprint(obj, p, cycle):
908 cls_ctor = CallExpression.factory(obj.__class__.__name__)
909 if cycle:
910 p.pretty(cls_ctor(RawText("...")))
911 elif len(obj):
912 p.pretty(cls_ctor(list(obj.items())))
913 else:
914 p.pretty(cls_ctor())
915
916def _deque_pprint(obj, p, cycle):
917 cls_ctor = CallExpression.factory(obj.__class__.__name__)

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…