From: Georg Brandl Date: Mon, 6 Oct 2014 14:45:23 +0000 (+0200) Subject: Closes #21782: the default hash(x) is not exactly id(x) but derived from it. X-Git-Tag: v3.5.0a1~741^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4dd27a3edba94d2f75cd234b67f109cf98aa76b6;p=python Closes #21782: the default hash(x) is not exactly id(x) but derived from it. --- diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 5fb91267f1..e06ab7ef46 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -355,8 +355,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 (except with themselves), and their hash value is their - :func:`id`. + compare unequal (except with themselves), and their hash value is derived + from their :func:`id`. IDLE An Integrated Development Environment for Python. IDLE is a basic editor