def __cmp__(self, other):
hs = hash(self)<EOL>ho = hash(other)<EOL>if hs != ho:<EOL><INDENT>return cmp(hs, ho)<EOL><DEDENT>return cmp(str(self), str(other))<EOL>
Compare this key to another.  Returns 0 if this key is equivalent to
the given key, or non-0 if they are different.  Only the public parts
of the key are compared, so a public key will compare equal to its
corresponding private key.

@param other: key to compare to.
@type other: L{PKey}
@return: 0 if the two keys are equivalent, non-0 otherwise.
@rtype: int