diff options
author | Andre Delfino <adelfino@gmail.com> | 2018-12-23 04:14:46 (GMT) |
---|---|---|
committer | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2018-12-23 04:14:46 (GMT) |
commit | f06fba5965b4265c42291d10454f387b76111f26 (patch) | |
tree | 0c7e63ae547f209f8f21d4202e81d3f2d1f25160 /Doc | |
parent | 3ce3dea60646d8a5a1c952469a2eb65f937875b3 (diff) | |
download | cpython-f06fba5965b4265c42291d10454f387b76111f26.zip cpython-f06fba5965b4265c42291d10454f387b76111f26.tar.gz cpython-f06fba5965b4265c42291d10454f387b76111f26.tar.bz2 |
Document that dict.fromkeys accepts any iterable for keys (GH-10998)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/stdtypes.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 0262c02..c699553c 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -4239,9 +4239,9 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098: Return a shallow copy of the dictionary. - .. classmethod:: fromkeys(seq[, value]) + .. classmethod:: fromkeys(iterable[, value]) - Create a new dictionary with keys from *seq* and values set to *value*. + Create a new dictionary with keys from *iterable* and values set to *value*. :meth:`fromkeys` is a class method that returns a new dictionary. *value* defaults to ``None``. |