From 139e445270fb533afc7fec0701233c9278b9aaaa Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Fri, 1 Feb 2013 05:18:44 +0200 Subject: [PATCH] #16128: clarify that instances of user-defined classes compare equal with themselves. --- Doc/glossary.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 198933b326d..3641e5c189d 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