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

Function _deque_pprint

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

Source from the content-addressed store, hash-verified

914 p.pretty(cls_ctor())
915
916def _deque_pprint(obj, p, cycle):
917 cls_ctor = CallExpression.factory(obj.__class__.__name__)
918 if cycle:
919 p.pretty(cls_ctor(RawText("...")))
920 elif obj.maxlen is not None:
921 p.pretty(cls_ctor(list(obj), maxlen=obj.maxlen))
922 else:
923 p.pretty(cls_ctor(list(obj)))
924
925def _counter_pprint(obj, p, cycle):
926 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…