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

Function _code

Lib/re/_compiler.py:590–603  ·  view source on GitHub ↗
(p, flags)

Source from the content-addressed store, hash-verified

588 return isinstance(obj, (str, bytes))
589
590def _code(p, flags):
591
592 flags = p.state.flags | flags
593 code = []
594
595 # compile info block
596 _compile_info(code, p, flags)
597
598 # compile the pattern
599 _compile(code, p.data, flags)
600
601 code.append(SUCCESS)
602
603 return code
604
605def _hex_code(code):
606 return '[%s]' % ', '.join('%#0*x' % (_sre.CODESIZE*2+2, x) for x in code)

Callers 1

compileFunction · 0.85

Calls 3

_compile_infoFunction · 0.85
_compileFunction · 0.70
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…