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

Function _super_pprint

IPython/lib/pretty.py:612–623  ·  view source on GitHub ↗

The pprint for the super type.

(obj, p, cycle)

Source from the content-addressed store, hash-verified

610
611
612def _super_pprint(obj, p, cycle):
613 """The pprint for the super type."""
614 p.begin_group(8, '<super: ')
615 p.pretty(obj.__thisclass__)
616 p.text(',')
617 p.breakable()
618 if PYPY: # In PyPy, super() objects don't have __self__ attributes
619 dself = obj.__repr__.__self__
620 p.pretty(None if dself is obj else dself)
621 else:
622 p.pretty(obj.__self__)
623 p.end_group(8, '>')
624
625
626def _re_pattern_pprint(obj, p, cycle):

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