MCPcopy Index your code
hub / github.com/python/cpython / _simple

Function _simple

Lib/re/_compiler.py:412–419  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

410 return a.tolist()
411
412def _simple(p):
413 # check if this subpattern is a "simple" operator
414 if len(p) != 1:
415 return False
416 op, av = p[0]
417 if op is SUBPATTERN:
418 return av[0] is None and _simple(av[-1])
419 return op in _UNIT_CODES
420
421def _generate_overlap_table(prefix):
422 """

Callers 1

_compileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…