]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40013: Clarify documentation of restval in csv.DictReader (GH-19099)
authorJuhana Jauhiainen <juhana.jauhiainen@gmail.com>
Tue, 24 Mar 2020 17:11:42 +0000 (19:11 +0200)
committerGitHub <noreply@github.com>
Tue, 24 Mar 2020 17:11:42 +0000 (22:41 +0530)
Doc/library/csv.rst

index 49e22fa73ed2655ad2887c934b09aa48936754bd..61d39828e0194add42fac1e47fd1393c8a9d10fe 100644 (file)
@@ -161,7 +161,8 @@ The :mod:`csv` module defines the following classes:
    If a row has more fields than fieldnames, the remaining data is put in a
    list and stored with the fieldname specified by *restkey* (which defaults
    to ``None``).  If a non-blank row has fewer fields than fieldnames, the
-   missing values are filled-in with ``None``.
+   missing values are filled-in with the value of *restval* (which defaults
+   to ``None``).
 
    All other optional or keyword arguments are passed to the underlying
    :class:`reader` instance.