Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions peps/pep-0814.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ Construction
* ``frozendict(collection, **kwargs)`` combines the two previous
constructions.

Keys must be hashable and so immutable, but values can be mutable.
Using immutable values creates a hashtable ``frozendict``.
Keys must be hashable and therefore immutable, but values can be mutable.
Using immutable values creates a hashable ``frozendict``.

Creating a ``frozendict`` from a ``dict``, ``frozendict(dict)``, has a
complexity of *O*\ (*n*): items are copied (shallow copy).
Expand Down Expand Up @@ -164,7 +164,7 @@ See also :pep:`584` "Add Union Operators To dict".
Copy
----

``frozencopy.copy()`` returns a shallow copy. In CPython, it simply
``frozendict.copy()`` returns a shallow copy. In CPython, it simply
returns the same ``frozendict`` (new reference).

Use ``copy.deepcopy()`` to get a deep copy.
Expand Down