Skip to content

Commit 1636707

Browse files
authored
PEP 814: Clarify immutable VS hashable values (#4743)
1 parent c7e7ad8 commit 1636707

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

peps/pep-0814.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ Construction
8080
* ``frozendict(collection, **kwargs)`` combines the two previous
8181
constructions.
8282

83-
Keys must be hashable and therefore immutable, but values can be mutable.
84-
Using immutable values creates a hashable ``frozendict``.
83+
Keys must be hashable, but values can be non-hashable.
84+
Using hashable values creates a hashable ``frozendict``.
8585

8686
Creating a ``frozendict`` from a ``dict``, ``frozendict(dict)``, has a
8787
complexity of *O*\ (*n*): items are copied (shallow copy).

0 commit comments

Comments
 (0)