mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Closes #21782: the default hash(x) is not exactly id(x) but derived from it.
This commit is contained in:
parent
a94ad1e508
commit
4dd27a3edb
1 changed files with 2 additions and 2 deletions
|
@ -355,8 +355,8 @@ Glossary
|
||||||
All of Python's immutable built-in objects are hashable, while no mutable
|
All of Python's immutable built-in objects are hashable, while no mutable
|
||||||
containers (such as lists or dictionaries) are. Objects which are
|
containers (such as lists or dictionaries) are. Objects which are
|
||||||
instances of user-defined classes are hashable by default; they all
|
instances of user-defined classes are hashable by default; they all
|
||||||
compare unequal (except with themselves), and their hash value is their
|
compare unequal (except with themselves), and their hash value is derived
|
||||||
:func:`id`.
|
from their :func:`id`.
|
||||||
|
|
||||||
IDLE
|
IDLE
|
||||||
An Integrated Development Environment for Python. IDLE is a basic editor
|
An Integrated Development Environment for Python. IDLE is a basic editor
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue