Skip to content

Commit f06fba5

Browse files
andresdelfinorhettinger
authored andcommitted
Document that dict.fromkeys accepts any iterable for keys (pythonGH-10998)
1 parent 3ce3dea commit f06fba5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/stdtypes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4239,9 +4239,9 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
42394239

42404240
Return a shallow copy of the dictionary.
42414241

4242-
.. classmethod:: fromkeys(seq[, value])
4242+
.. classmethod:: fromkeys(iterable[, value])
42434243

4244-
Create a new dictionary with keys from *seq* and values set to *value*.
4244+
Create a new dictionary with keys from *iterable* and values set to *value*.
42454245

42464246
:meth:`fromkeys` is a class method that returns a new dictionary. *value*
42474247
defaults to ``None``.

0 commit comments

Comments
 (0)