Skip to content

Commit

Permalink
bpo-40013: Clarify documentation of restval in csv.DictReader (GH-19099
Browse files Browse the repository at this point in the history
…) (GH-19141)

(cherry picked from commit 4b3252c)


Co-authored-by: Juhana Jauhiainen <juhana.jauhiainen@gmail.com>
  • Loading branch information
miss-islington and juhanakristian committed Mar 25, 2020
1 parent af6fd1f commit 2227c1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Doc/library/csv.rst
Expand Up @@ -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.
Expand Down

0 comments on commit 2227c1a

Please sign in to comment.