diff options
author | Jens W. Klein <jk@kleinundpartner.at> | 2020-01-28 14:02:56 +0100 |
---|---|---|
committer | Jens W. Klein <jk@kleinundpartner.at> | 2020-01-28 14:02:56 +0100 |
commit | 7f070c295995903005a080540d217c1acf64160f (patch) | |
tree | 1b7aca7e01142ef712049e1c714ccb513cd094cb | |
parent | 24a8b54a8bffb8a18e713213ac0da74ec058ab0c (diff) | |
download | zope-interface-7f070c295995903005a080540d217c1acf64160f.tar.gz |
apply suggestion by @jmadden to enhance comment
-rw-r--r-- | src/zope/interface/declarations.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zope/interface/declarations.py b/src/zope/interface/declarations.py index 63b09fd..97ccd55 100644 --- a/src/zope/interface/declarations.py +++ b/src/zope/interface/declarations.py @@ -223,12 +223,12 @@ class Implements(Declaration): # This spelling works under Python3, which doesn't have cmp(). return (n1 > n2) - (n1 < n2) - # We want equality to be based on identity. However, we can't actually + # We want equality and hashing to be based on identity. However, we can't actually # implement __eq__/__ne__ to do this because sometimes we get wrapped in a proxy. # We need to let the proxy types implement these methods so they can handle unwrapping # and then rely on: (1) the interpreter automatically changing `implements == proxy` into # `proxy == implements` (which will call proxy.__eq__ to do the unwrapping) and then - # (2) the default equality semantics being identity based. + # (2) the default equality and hashing semantics being identity based. def __lt__(self, other): c = self.__cmp(other) |