MCPcopy Index your code
hub / github.com/RustPython/RustPython / addgroup

Function addgroup

Lib/re/_parser.py:1006–1010  ·  view source on GitHub ↗
(index, pos)

Source from the content-addressed store, hash-verified

1004 result.append(''.join(literal).encode('latin-1'))
1005 del literal[:]
1006 def addgroup(index, pos):
1007 if index > pattern.groups:
1008 raise s.error("invalid group reference %d" % index, pos)
1009 addliteral()
1010 result.append(index)
1011 groupindex = pattern.groupindex
1012 while True:
1013 this = sget()

Callers 1

parse_templateFunction · 0.85

Calls 3

addliteralFunction · 0.85
errorMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected