From: Ezio Melotti Date: Fri, 1 Feb 2013 03:18:44 +0000 (+0200) Subject: #16128: clarify that instances of user-defined classes compare equal with themselves. X-Git-Tag: v3.2.4rc1~169 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=188ad851fb8ca72d104c92ca6377765e9a5c4a65;p=thirdparty%2FPython%2Fcpython.git #16128: clarify that instances of user-defined classes compare equal with themselves. --- diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 55c3470d6705..1100b1f3157a 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