8000 bpo-40013: Clarify documentation of restval in csv.DictReader (GH-19099) · python/cpython@4b3252c · GitHub
[go: up one dir, main page]

Skip to content

Commit 4b3252c

Browse files
bpo-40013: Clarify documentation of restval in csv.DictReader (GH-19099)
1 parent 83d46e0 commit 4b3252c

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)
0