Kaydet (Commit) 64c887ab authored tarafından csabella's avatar csabella Kaydeden (comit) Senthil Kumaran

bpo-26947: DOC: clarify wording on hashable in glossary (#948)

üst e82cf867
...@@ -467,9 +467,9 @@ Glossary ...@@ -467,9 +467,9 @@ Glossary
Hashability makes an object usable as a dictionary key and a set member, Hashability makes an object usable as a dictionary key and a set member,
because these data structures use the hash value internally. because these data structures use the hash value internally.
All of Python's immutable built-in objects are hashable, while no mutable All of Python's immutable built-in objects are hashable; mutable
containers (such as lists or dictionaries) are. Objects which are containers (such as lists or dictionaries) are not. 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 derived compare unequal (except with themselves), and their hash value is derived
from their :func:`id`. from their :func:`id`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment