summaryrefslogtreecommitdiffstats
path: root/Doc/glossary.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-09-24 09:11:47 (GMT)
committerGeorg Brandl <georg@python.org>2008-09-24 09:11:47 (GMT)
commit05f5ab7ee39b16bdd7fda23b3276d52b8c2b4acb (patch)
tree8a305a4e434000adb6d07fe1faaa795494d8ee95 /Doc/glossary.rst
parent23dbc6eeca5708ef0149e75a1ee4bb66df017e06 (diff)
downloadcpython-05f5ab7ee39b16bdd7fda23b3276d52b8c2b4acb.zip
cpython-05f5ab7ee39b16bdd7fda23b3276d52b8c2b4acb.tar.gz
cpython-05f5ab7ee39b16bdd7fda23b3276d52b8c2b4acb.tar.bz2
Remove references to __cmp__.
Diffstat (limited to 'Doc/glossary.rst')
-rw-r--r--Doc/glossary.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst
index 1adf779..c789ae5 100644
--- a/Doc/glossary.rst
+++ b/Doc/glossary.rst
@@ -246,8 +246,8 @@ Glossary
hashable
An object is *hashable* if it has a hash value which never changes during
its lifetime (it needs a :meth:`__hash__` method), and can be compared to
- other objects (it needs an :meth:`__eq__` or :meth:`__cmp__` method).
- Hashable objects which compare equal must have the same hash value.
+ other objects (it needs an :meth:`__eq__` method). Hashable objects which
+ compare equal must have the same hash value.
Hashability makes an object usable as a dictionary key and a set member,
because these data structures use the hash value internally.