[Python-checkins] bpo-40013: Clarify documentation of restval in csv.DictReader (GH-19099) (GH-19142)

Miss Islington (bot) webhook-mailer at python.org
Wed Mar 25 03:01:19 EDT 2020


https://github.com/python/cpython/commit/e5527f0edf7edc98e5e859b5fe823878684b4b6a
commit: e5527f0edf7edc98e5e859b5fe823878684b4b6a
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-03-25T12:31:14+05:30
summary:

bpo-40013: Clarify documentation of restval in csv.DictReader (GH-19099) (GH-19142)

(cherry picked from commit 4b3252cb764807fdb3a661b458d43e4af55cf4df)


Co-authored-by: Juhana Jauhiainen <juhana.jauhiainen at gmail.com>

files:
M Doc/library/csv.rst

diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst
index 049537eff8984..bd4e775b02bc4 100644
--- a/Doc/library/csv.rst
+++ b/Doc/library/csv.rst
@@ -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.



More information about the Python-checkins mailing list