Skip to content

Commit e5527f0

Browse files
bpo-40013: Clarify documentation of restval in csv.DictReader (GH-19099) (GH-19142)
(cherry picked from commit 4b3252c) Co-authored-by: Juhana Jauhiainen <[email protected]>
1 parent 5753fc6 commit e5527f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/csv.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ The :mod:`csv` module defines the following classes:
161161
If a row has more fields than fieldnames, the remaining data is put in a
162162
list and stored with the fieldname specified by *restkey* (which defaults
163163
to ``None``). If a non-blank row has fewer fields than fieldnames, the
164-
missing values are filled-in with ``None``.
164+
missing values are filled-in with the value of *restval* (which defaults
165+
to ``None``).
165166

166167
All other optional or keyword arguments are passed to the underlying
167168
:class:`reader` instance.

0 commit comments

Comments
 (0)