diff options
| author | Georg Brandl <georg@python.org> | 2014-10-06 14:45:23 (GMT) |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2014-10-06 14:45:23 (GMT) |
| commit | 4dd27a3edba94d2f75cd234b67f109cf98aa76b6 (patch) | |
| tree | 56c57e4022a590c72eea3c9a9b6baac242055aab | |
| parent | a94ad1e508153cee6d355a1ee03e32146fa0c41f (diff) | |
| download | cpython-4dd27a3edba94d2f75cd234b67f109cf98aa76b6.zip cpython-4dd27a3edba94d2f75cd234b67f109cf98aa76b6.tar.gz cpython-4dd27a3edba94d2f75cd234b67f109cf98aa76b6.tar.bz2 | |
Closes #21782: the default hash(x) is not exactly id(x) but derived from it.
| -rw-r--r-- | Doc/glossary.rst | 4 |
1 files 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 |
