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

Function _defaultdict_pprint

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

Source from the content-addressed store, hash-verified

898
899
900def _defaultdict_pprint(obj, p, cycle):
901 cls_ctor = CallExpression.factory(obj.__class__.__name__)
902 if cycle:
903 p.pretty(cls_ctor(RawText("...")))
904 else:
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__)

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…