Skip to content

Commit 944692c

Browse files
committed
PEP 814: Address feedback from SC
1 parent 616c96a commit 944692c

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

peps/pep-0814.rst

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ Possible candidates for ``frozendict`` in the stdlib
251251
We have identified several stdlib modules where adopting ``frozendict``
252252
can enhance safety and prevent unintended modifications by design. We
253253
also believe that there are additional potential use cases beyond the
254-
ones listed below.
254+
ones listed below. However, this does not mean that we intend to make
255+
these changes without the approval of the respective module maintainers.
255256

256257
Note: it remains possible to bind again a variable to a new modified
257258
``frozendict`` or a new mutable ``dict``.
@@ -362,15 +363,9 @@ Reference Implementation
362363
Thread Safety
363364
=============
364365

365-
Once the ``frozendict`` is created, it is immutable and can be shared
366-
safely between threads without any synchronization.
367-
368-
369-
Future Work
370-
===========
371-
372-
We are also going to make ``frozendict`` to be more efficient in terms
373-
of memory usage and performance compared to ``dict`` in future.
366+
Once a ``frozendict`` is created, its shallow immutability is guaranteed.
367+
This means it can be safely shared between threads without synchronization,
368+
as long as its values are not modified by other threads.
374369

375370

376371
Rejected Ideas

0 commit comments

Comments
 (0)