Skip to content

Commit 49e8a98

Browse files
committed
Address code review
1 parent da588a1 commit 49e8a98

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

Doc/library/stdtypes.rst

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5871,16 +5871,6 @@ Frozen dictionaries
58715871
:class:`!frozendict` is not a :class:`!dict` subclass but inherits directly
58725872
from ``object``.
58735873

5874-
.. classmethod:: fromkeys(iterable, value=None, /)
5875-
5876-
Create a new frozen dictionary with keys from *iterable* and values set to
5877-
*value*.
5878-
5879-
:meth:`fromkeys` is a class method that returns a new frozen dictionary.
5880-
*value* defaults to ``None``. All of the values refer to just a single
5881-
instance, so it generally doesn't make sense for *value* to be a mutable
5882-
object such as an empty list.
5883-
58845874
.. versionadded:: next
58855875

58865876

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
Optimize :meth:`dict.fromkeys` and :meth:`frozendict.fromkeys` to avoid
2-
unnecessary thread-safety operations in frozendict cases. Patch by Donghee
3-
Na.
1+
Optimize :meth:`!frozendict.fromkeys` to avoid unnecessary thread-safety operations
2+
in frozendict cases. Patch by Donghee Na.

0 commit comments

Comments
 (0)