summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-03-25 07:00:53 (GMT)
committerGitHub <noreply@github.com>2020-03-25 07:00:53 (GMT)
commit2227c1a4ca87034ed9eac55eb260a5fb0a04375d (patch)
tree3828f398d4e9aa5e59ef14b20335a05b82ca6973 /Doc/library
parentaf6fd1faa68f57c11c862624798f8510b7cac68a (diff)
downloadcpython-2227c1a4ca87034ed9eac55eb260a5fb0a04375d.zip
cpython-2227c1a4ca87034ed9eac55eb260a5fb0a04375d.tar.gz
cpython-2227c1a4ca87034ed9eac55eb260a5fb0a04375d.tar.bz2
bpo-40013: Clarify documentation of restval in csv.DictReader (GH-19099) (GH-19141)
(cherry picked from commit 4b3252cb764807fdb3a661b458d43e4af55cf4df) Co-authored-by: Juhana Jauhiainen <juhana.jauhiainen@gmail.com>
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/csv.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst
index 49e22fa..61d3982 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.