mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
bpo-40013: Clarify documentation of restval in csv.DictReader (GH-19099)
This commit is contained in:
parent
83d46e0622
commit
4b3252cb76
1 changed files with 2 additions and 1 deletions
|
@ -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
|
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
|
list and stored with the fieldname specified by *restkey* (which defaults
|
||||||
to ``None``). If a non-blank row has fewer fields than fieldnames, the
|
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
|
All other optional or keyword arguments are passed to the underlying
|
||||||
:class:`reader` instance.
|
:class:`reader` instance.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue