cpython: bfaf434a6f10 (original) (raw)
Mercurial > cpython
changeset 92852:bfaf434a6f10 3.4
Closes #21782: the default hash(x) is not exactly id(x) but derived from it. [#21782]
Georg Brandl georg@python.org | |
---|---|
date | Mon, 06 Oct 2014 16:45:23 +0200 |
parents | 8c33440d1f64 |
children | c45841ac52d4 1439619daf42 |
files | Doc/glossary.rst |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-)[+] [-] Doc/glossary.rst 4 |
line wrap: on
line diff
--- 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[](#l1.7)
:func:`id`.[](#l1.8)
compare unequal (except with themselves), and their hash value is derived[](#l1.9)
from their :func:`id`.[](#l1.10)
IDLE An Integrated Development Environment for Python. IDLE is a basic editor