summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-02-01 03:18:44 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-02-01 03:18:44 (GMT)
commit188ad851fb8ca72d104c92ca6377765e9a5c4a65 (patch)
treed48f5c6397bf657633b680680996637436d455f3 /Doc
parent9a11f176733b8df1dcdf9e54029937b54d69f5f0 (diff)
downloadcpython-188ad851fb8ca72d104c92ca6377765e9a5c4a65.zip
cpython-188ad851fb8ca72d104c92ca6377765e9a5c4a65.tar.gz
cpython-188ad851fb8ca72d104c92ca6377765e9a5c4a65.tar.bz2
#16128: clarify that instances of user-defined classes compare equal with themselves.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/glossary.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst
index 55c3470..1100b1f 100644
--- a/Doc/glossary.rst
+++ b/Doc/glossary.rst
@@ -320,7 +320,8 @@ Glossary
All of Python's immutable built-in objects are hashable, while no mutable
containers (such as lists or dictionaries) are. Objects which are
instances of user-defined classes are hashable by default; they all
- compare unequal, and their hash value is their :func:`id`.
+ compare unequal (except with themselves), and their hash value is their
+ :func:`id`.
IDLE
An Integrated Development Environment for Python. IDLE is a basic editor