]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40013: Clarify documentation of restval in csv.DictReader (GH-19099) (GH-19142)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 25 Mar 2020 07:01:14 +0000 (00:01 -0700)
committerGitHub <noreply@github.com>
Wed, 25 Mar 2020 07:01:14 +0000 (12:31 +0530)
(cherry picked from commit 4b3252cb764807fdb3a661b458d43e4af55cf4df)

Co-authored-by: Juhana Jauhiainen <juhana.jauhiainen@gmail.com>
Doc/library/csv.rst

index 049537eff8984676a50a321d173eefb54a2d207d..bd4e775b02bc42d3f4d950aa4dfd23c0cd045649 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.