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

This commit is contained in:
Juhana Jauhiainen 2020-03-24 19:11:42 +02:00 committed by GitHub
parent 83d46e0622
commit 4b3252cb76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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.