def get_item(self, i, d=None):
        if self.has_groupref or d is not None:
            if d is None:
                d = {}
            return super(RegexMembershipSequence, self).get_item(i, d)
        else:
            return super(RegexMembershipSequence, self).get_item(i)
Typically only pass i.  d is an internal detail, for consistency with other classes.
dataset/ETHPy150Open girishramnani/hacking-tools/pyhashcat/sre_yield/__init__.py/RegexMembershipSequence.get_item