]> granicus.if.org Git - python/commitdiff
bpo-26947: DOC: clarify wording on hashable in glossary (#948) (#958)
authorSenthil Kumaran <skumaran@gatech.edu>
Sun, 2 Apr 2017 03:00:41 +0000 (20:00 -0700)
committerGitHub <noreply@github.com>
Sun, 2 Apr 2017 03:00:41 +0000 (20:00 -0700)
(cherry picked from commit 64c887ab3a400cf91bde4f0c5ef69eacc88bc5e1)

Doc/glossary.rst

index 07b26a64b89c134c0965b365493f01d48cc08fd9..f474a6d8a71e9546332e9cadf5eb32f8966bcc91 100644 (file)
@@ -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`.