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

Method checklookbehindgroup

Lib/re/_parser.py:103–109  ·  view source on GitHub ↗
(self, gid, source)

Source from the content-addressed store, hash-verified

101 return gid < self.groups and self.groupwidths[gid] is not None
102
103 def checklookbehindgroup(self, gid, source):
104 if self.lookbehindgroups is not None:
105 if not self.checkgroup(gid):
106 raise source.error('cannot refer to an open group')
107 if gid >= self.lookbehindgroups:
108 raise source.error('cannot refer to group defined in the same '
109 'lookbehind subpattern')
110
111class SubPattern:
112 # a subpattern, in intermediate form

Callers 2

_escapeFunction · 0.80
_parseFunction · 0.80

Calls 2

checkgroupMethod · 0.95
errorMethod · 0.45

Tested by

no test coverage detected