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

Method _repr_pretty_

IPython/lib/pretty.py:726–741  ·  view source on GitHub ↗
(self, p, cycle)

Source from the content-addressed store, hash-verified

724 self.value = value
725
726 def _repr_pretty_(self, p, cycle):
727 done_one = False
728 for flag in (
729 "IGNORECASE",
730 "LOCALE",
731 "MULTILINE",
732 "DOTALL",
733 "UNICODE",
734 "VERBOSE",
735 "DEBUG",
736 ):
737 if self.value & getattr(re, flag):
738 if done_one:
739 p.text('|')
740 p.text('re.' + flag)
741 done_one = True
742
743
744def _re_pattern_pprint(obj, p, cycle):

Callers

nothing calls this directly

Calls 1

textMethod · 0.45

Tested by

no test coverage detected