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

Function _re_pattern_pprint

IPython/lib/pretty.py:744–750  ·  view source on GitHub ↗

The pprint function for regular expression patterns.

(obj, p, cycle)

Source from the content-addressed store, hash-verified

742
743
744def _re_pattern_pprint(obj, p, cycle):
745 """The pprint function for regular expression patterns."""
746 re_compile = CallExpression.factory('re.compile')
747 if obj.flags:
748 p.pretty(re_compile(RawStringLiteral(obj.pattern), _ReFlags(obj.flags)))
749 else:
750 p.pretty(re_compile(RawStringLiteral(obj.pattern)))
751
752
753def _types_simplenamespace_pprint(obj, p, cycle):

Callers

nothing calls this directly

Calls 4

RawStringLiteralClass · 0.85
_ReFlagsClass · 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…