]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Document that dict.fromkeys accepts any iterable for keys (GH-10998)
authorAndre Delfino <adelfino@gmail.com>
Sun, 23 Dec 2018 04:14:46 +0000 (01:14 -0300)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>
Sun, 23 Dec 2018 04:14:46 +0000 (20:14 -0800)
Doc/library/stdtypes.rst

index 0262c0292f52b4d010da7604070f38ddff3842ec..c699553c02b90b1b38bb6acfc36ef76d2aef814e 100644 (file)
@@ -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``.