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.
        
stackoverflow/venv/lib/python3.6/site-packages/pip-19.0.3-py3.6.egg/pip/_vendor/pyparsing.py