diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-02-01 03:18:44 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-02-01 03:18:44 (GMT) |
commit | 139e445270fb533afc7fec0701233c9278b9aaaa (patch) | |
tree | 3b40972baed0f22b81a5277b0df136230029f031 | |
parent | d65e2bab3b438f883ef28245f51795b14a4c498f (diff) | |
download | cpython-139e445270fb533afc7fec0701233c9278b9aaaa.zip cpython-139e445270fb533afc7fec0701233c9278b9aaaa.tar.gz cpython-139e445270fb533afc7fec0701233c9278b9aaaa.tar.bz2 |
#16128: clarify that instances of user-defined classes compare equal with themselves.
-rw-r--r-- | Doc/glossary.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 198933b..3641e5c 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -330,7 +330,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 |