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

Function _bytes_to_codes

Lib/re/_compiler.py:405–410  ·  view source on GitHub ↗
(b)

Source from the content-addressed store, hash-verified

403 for i in range(len(s), 0, -_CODEBITS)]
404
405def _bytes_to_codes(b):
406 # Convert block indices to word array
407 a = memoryview(b).cast('I')
408 assert a.itemsize == _sre.CODESIZE
409 assert len(a) * a.itemsize == len(b)
410 return a.tolist()
411
412def _simple(p):
413 # check if this subpattern is a "simple" operator

Callers 1

_optimize_charsetFunction · 0.85

Calls 1

castMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…