def groupdict(self, default=None):
groupdict = {}<EOL>for key, value in list(self.re.groupindex.items()):<EOL><INDENT>groupdict[key] = self._get_slice(value, default)<EOL><DEDENT>return groupdict<EOL>
Return a dictionary containing all the named subgroups of the match.
        The default argument is used for groups that did not participate in the
        match (defaults to None).