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

Function addgroup

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

Source from the content-addressed store, hash-verified

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…