@@ -47,7 +47,7 @@ Module Contents
4747The :mod: `csv ` module defines the following functions:
4848
4949
50- .. function :: reader(csvfile[ , dialect='excel'][, fmtparam] )
50+ .. function :: reader(csvfile, dialect='excel', **fmtparams )
5151
5252 Return a reader object which will iterate over lines in the given *csvfile *.
5353 *csvfile * can be any object which supports the :term: `iterator ` protocol and returns a
@@ -57,7 +57,7 @@ The :mod:`csv` module defines the following functions:
5757 *dialect * parameter can be given which is used to define a set of parameters
5858 specific to a particular CSV dialect. It may be an instance of a subclass of
5959 the :class: `Dialect ` class or one of the strings returned by the
60- :func: `list_dialects ` function. The other optional *fmtparam * keyword arguments
60+ :func: `list_dialects ` function. The other optional *fmtparams * keyword arguments
6161 can be given to override individual formatting parameters in the current
6262 dialect. For full details about the dialect and formatting parameters, see
6363 section :ref: `csv-fmt-params `.
@@ -76,15 +76,15 @@ The :mod:`csv` module defines the following functions:
7676 Spam, Lovely Spam, Wonderful Spam
7777
7878
79- .. function :: writer(csvfile[ , dialect='excel'][, fmtparam] )
79+ .. function :: writer(csvfile, dialect='excel', **fmtparams )
8080
8181 Return a writer object responsible for converting the user's data into delimited
8282 strings on the given file-like object. *csvfile * can be any object with a
8383 :func: `write ` method. An optional *dialect *
8484 parameter can be given which is used to define a set of parameters specific to a
8585 particular CSV dialect. It may be an instance of a subclass of the
8686 :class: `Dialect ` class or one of the strings returned by the
87- :func: `list_dialects ` function. The other optional *fmtparam * keyword arguments
87+ :func: `list_dialects ` function. The other optional *fmtparams * keyword arguments
8888 can be given to override individual formatting parameters in the current
8989 dialect. For full details about the dialect and formatting parameters, see
9090 section :ref: `csv-fmt-params `. To make it
@@ -103,11 +103,11 @@ The :mod:`csv` module defines the following functions:
103103 >>> spamWriter.writerow(['Spam', 'Lovely Spam', 'Wonderful Spam'])
104104
105105
106- .. function :: register_dialect(name[, dialect][, fmtparam] )
106+ .. function :: register_dialect(name[, dialect], **fmtparams )
107107
108108 Associate *dialect * with *name *. *name * must be a string. The
109109 dialect can be specified either by passing a sub-class of :class: `Dialect `, or
110- by *fmtparam * keyword arguments, or both, with keyword arguments overriding
110+ by *fmtparams * keyword arguments, or both, with keyword arguments overriding
111111 parameters of the dialect. For full details about the dialect and formatting
112112 parameters, see section :ref: `csv-fmt-params `.
113113
@@ -137,7 +137,7 @@ The :mod:`csv` module defines the following functions:
137137
138138The :mod: `csv ` module defines the following classes:
139139
140- .. class :: DictReader(csvfile[ , fieldnames=None[ , restkey=None[ , restval=None[ , dialect='excel'[ , *args, **kwds]]]]] )
140+ .. class :: DictReader(csvfile, fieldnames=None, restkey=None, restval=None, dialect='excel', *args, **kwds)
141141
142142 Create an object which operates like a regular reader but maps the information
143143 read into a dict whose keys are given by the optional *fieldnames * parameter.
@@ -151,7 +151,7 @@ The :mod:`csv` module defines the following classes:
151151 arguments are passed to the underlying :class: `reader ` instance.
152152
153153
154- .. class :: DictWriter(csvfile, fieldnames[ , restval=''[ , extrasaction='raise'[ , dialect='excel'[ , *args, **kwds]]]] )
154+ .. class :: DictWriter(csvfile, fieldnames, restval='', extrasaction='raise', dialect='excel', *args, **kwds)
155155
156156 Create an object which operates like a regular writer but maps dictionaries onto
157157 output rows. The *fieldnames * parameter identifies the order in which values in
@@ -195,7 +195,7 @@ The :mod:`csv` module defines the following classes:
195195
196196 The :class: `Sniffer ` class provides two methods:
197197
198- .. method :: sniff(sample[ , delimiters=None] )
198+ .. method :: sniff(sample, delimiters=None)
199199
200200 Analyze the given *sample * and return a :class: `Dialect ` subclass
201201 reflecting the parameters found. If the optional *delimiters * parameter
0 commit comments