From 1bffd14b0e0130d6593fb286a616c1e77dc14fcc Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 15 Nov 2025 15:25:03 +0100 Subject: [PATCH 1/3] PEP 814: Misc changes --- peps/pep-0814.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peps/pep-0814.rst b/peps/pep-0814.rst index 6ca46195a05..9dbedfbcdba 100644 --- a/peps/pep-0814.rst +++ b/peps/pep-0814.rst @@ -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. From beaf800023f6203e251f2b959788363daab5951a Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 17 Nov 2025 15:42:34 +0100 Subject: [PATCH 2/3] Fix typo --- peps/pep-0814.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peps/pep-0814.rst b/peps/pep-0814.rst index 9dbedfbcdba..f7bf176ff30 100644 --- a/peps/pep-0814.rst +++ b/peps/pep-0814.rst @@ -81,7 +81,7 @@ Construction constructions. Keys must be hashable and so immutable, but values can be mutable. -Using immutable values creates a hashtable ``frozendict``. +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). From 62bf37b266ce507a4a0f07bb3f50529d3412d193 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 17 Nov 2025 15:43:23 +0100 Subject: [PATCH 3/3] therefore --- peps/pep-0814.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peps/pep-0814.rst b/peps/pep-0814.rst index f7bf176ff30..ce8470f0aa6 100644 --- a/peps/pep-0814.rst +++ b/peps/pep-0814.rst @@ -80,7 +80,7 @@ Construction * ``frozendict(collection, **kwargs)`` combines the two previous constructions. -Keys must be hashable and so immutable, but values can be mutable. +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