diff options
author | Senthil Kumaran <skumaran@gatech.edu> | 2017-04-02 03:00:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-02 03:00:41 (GMT) |
commit | 51fc7e3d6a29de7b3142e51f8caf4d31f7ac72a0 (patch) | |
tree | 1a793af58fb143cf0a43ec2e32db980a4f893ea0 | |
parent | f3158121132a1519439bf4c7dba3333b07802d6d (diff) | |
download | cpython-51fc7e3d6a29de7b3142e51f8caf4d31f7ac72a0.zip cpython-51fc7e3d6a29de7b3142e51f8caf4d31f7ac72a0.tar.gz cpython-51fc7e3d6a29de7b3142e51f8caf4d31f7ac72a0.tar.bz2 |
bpo-26947: DOC: clarify wording on hashable in glossary (#948) (#958)
(cherry picked from commit 64c887ab3a400cf91bde4f0c5ef69eacc88bc5e1)
-rw-r--r-- | Doc/glossary.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 07b26a6..f474a6d 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -434,9 +434,9 @@ Glossary Hashability makes an object usable as a dictionary key and a set member, because these data structures use the hash value internally. - 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 + All of Python's immutable built-in objects are hashable; mutable + containers (such as lists or dictionaries) are not. Objects which are + instances of user-defined classes are hashable by default. They all compare unequal (except with themselves), and their hash value is derived from their :func:`id`. |