MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _simple

Function _simple

tools/python-3.11.9-amd64/Lib/re/_compiler.py:398–405  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

396 return a.tolist()
397
398def _simple(p):
399 # check if this subpattern is a "simple" operator
400 if len(p) != 1:
401 return False
402 op, av = p[0]
403 if op is SUBPATTERN:
404 return av[0] is None and _simple(av[-1])
405 return op in _UNIT_CODES
406
407def _generate_overlap_table(prefix):
408 """

Callers 1

_compileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected