From d27d0adaa7c328dea8d4a562c3454c0325c176c9 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 11 Dec 2025 13:31:06 +0100 Subject: [PATCH] PEP 814: Clarify immutable VS hashable values --- peps/pep-0814.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/peps/pep-0814.rst b/peps/pep-0814.rst index 6023f261f3c..91ac0b3e649 100644 --- a/peps/pep-0814.rst +++ b/peps/pep-0814.rst @@ -80,8 +80,8 @@ Construction * ``frozendict(collection, **kwargs)`` combines the two previous constructions. -Keys must be hashable and therefore immutable, but values can be mutable. -Using immutable values creates a hashable ``frozendict``. +Keys must be hashable, but values can be non-hashable. +Using hashable values creates a hashable ``frozendict``. Creating a ``frozendict`` from a ``dict``, ``frozendict(dict)``, has a complexity of *O*\ (*n*): items are copied (shallow copy).