def _get_index(self, group):
        if isinstance(group, int):
            if group >= 0 and group <= self.re.groups:
                return group
        else:
            if group in self.re.groupindex:
                return self.re.groupindex[group]
        raise IndexError("no such group")
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/_sre.py/SRE_Match._get_index/original