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(self.asbytes(), other.asbytes())<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 .PKey other: key to compare to.