def copy(self):
        """
        Returns a new copy of a :class:`ParseResults` object.
        """
        ret = ParseResults(self.__toklist)
        ret.__tokdict = dict(self.__tokdict.items())
        ret.__parent = self.__parent
        ret.__accumNames.update(self.__accumNames)
        ret.__name = self.__name
        return ret

        Returns a new copy of a :class:`ParseResults` object.
        
product/gradle-plugin/src/main/python/pip/_vendor/pyparsing.py