Skip to content
Prev Previous commit
Next Next commit
Update docs
  • Loading branch information
corona10 committed Feb 17, 2026
commit f056fa63076f2fcf6d5ab126f2b45064c03d4747
10 changes: 10 additions & 0 deletions Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5871,6 +5871,16 @@ Frozen dictionaries
:class:`!frozendict` is not a :class:`!dict` subclass but inherits directly
from ``object``.

.. classmethod:: fromkeys(iterable, value=None, /)
Comment thread
corona10 marked this conversation as resolved.
Outdated

Create a new frozen dictionary with keys from *iterable* and values set to
*value*.

:meth:`fromkeys` is a class method that returns a new frozen dictionary.
*value* defaults to ``None``. All of the values refer to just a single
instance, so it generally doesn't make sense for *value* to be a mutable
object such as an empty list.

.. versionadded:: next


Expand Down
Loading