]> granicus.if.org Git - python/commitdiff
Closes #21782: the default hash(x) is not exactly id(x) but derived from it.
authorGeorg Brandl <georg@python.org>
Mon, 6 Oct 2014 14:45:23 +0000 (16:45 +0200)
committerGeorg Brandl <georg@python.org>
Mon, 6 Oct 2014 14:45:23 +0000 (16:45 +0200)
Doc/glossary.rst

index 5fb91267f1c21dbd0db22c67cf1c1366334d191b..e06ab7ef46bc6eab2abdc9c5ca9f81365f0971af 100644 (file)
@@ -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