(self)
return other
Return a separate copy of this hashing object.

        An update to this copy won't affect the original object.
Return a separate copy of this hashing object.
Return a separate copy of this hashing object .
def copy(self):
        """Return a separate copy of this hashing object.

        An update to this copy won't affect the original object.
        """
        # Call __new__ directly to avoid the expensive __init__.
        other = self.__class__.__new__(self.__class__)
        other.digest_size = self.digest_size
        if self._hmac:
            other._hmac = self._hmac.copy()
            other._inner = other._outer = None
        else:
            other._hmac = None
            other._inner = self._inner.copy()
            other._outer = self._outer.copy()
        return other
def copy ( self ) : # Call __new__ directly to avoid the expensive __init__. other = self . __class__ . __new__ ( self . __class__ ) other . digest_size = self . digest_size if self . _hmac : other . _hmac = self . _hmac . copy ( ) other . _inner = other . _outer = None else : other . _hmac = None other . _inner = self . _inner . copy ( ) other . _outer = self . _outer . copy ( ) return other