From 4dd27a3edba94d2f75cd234b67f109cf98aa76b6 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Mon, 6 Oct 2014 16:45:23 +0200 Subject: Closes #21782: the default hash(x) is not exactly id(x) but derived from it. --- Doc/glossary.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 5fb9126..e06ab7e 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 -- cgit v0.12