]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Document that dict.fromkeys accepts any iterable for keys (GH-10998) (GH-11294)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 23 Dec 2018 04:56:01 +0000 (20:56 -0800)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>
Sun, 23 Dec 2018 04:56:01 +0000 (20:56 -0800)
(cherry picked from commit f06fba5965b4265c42291d10454f387b76111f26)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
Doc/library/stdtypes.rst

index dd5a8ed35bf903c8237651018dd0e8eb6e390b9e..057c5d5f35c0866060deb88a26396f650fe7a7ef 100644 (file)
@@ -4201,9 +4201,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``.