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

Function _super_pprint

IPython/lib/pretty.py:707–718  ·  view source on GitHub ↗

The pprint for the super type.

(obj, p, cycle)

Source from the content-addressed store, hash-verified

705
706
707def _super_pprint(obj, p, cycle):
708 """The pprint for the super type."""
709 p.begin_group(8, '<super: ')
710 p.pretty(obj.__thisclass__)
711 p.text(',')
712 p.breakable()
713 if PYPY: # In PyPy, super() objects don't have __self__ attributes
714 dself = obj.__repr__.__self__
715 p.pretty(None if dself is obj else dself)
716 else:
717 p.pretty(obj.__self__)
718 p.end_group(8, '>')
719
720
721

Callers

nothing calls this directly

Calls 5

begin_groupMethod · 0.80
prettyMethod · 0.80
breakableMethod · 0.80
end_groupMethod · 0.80
textMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…