summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuhana Jauhiainen <juhana.jauhiainen@gmail.com>2020-03-24 17:11:42 (GMT)
committerGitHub <noreply@github.com>2020-03-24 17:11:42 (GMT)
commit4b3252cb764807fdb3a661b458d43e4af55cf4df (patch)
treeb01fb9acae547f7fd9a0b52e54dfa5d4a7804aa8
parent83d46e0622d2efdf5f3bf8bf8904d0dcb55fc322 (diff)
downloadcpython-4b3252cb764807fdb3a661b458d43e4af55cf4df.zip
cpython-4b3252cb764807fdb3a661b458d43e4af55cf4df.tar.gz
cpython-4b3252cb764807fdb3a661b458d43e4af55cf4df.tar.bz2
bpo-40013: Clarify documentation of restval in csv.DictReader (GH-19099)
-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.