@@ -88,7 +88,7 @@ The :mod:`csv` module defines the following functions:
88
88
89
89
Return a writer object responsible for converting the user's data into delimited
90
90
strings on the given file-like object. *csvfile * can be any object with a
91
- :func: ` write ` method. If *csvfile * is a file object, it should be opened with
91
+ :meth: ` ~io.TextIOBase. write ` method. If *csvfile * is a file object, it should be opened with
92
92
``newline='' `` [1 ]_. An optional *dialect *
93
93
parameter can be given which is used to define a set of parameters specific to a
94
94
particular CSV dialect. It may be an instance of a subclass of the
@@ -195,10 +195,10 @@ The :mod:`csv` module defines the following classes:
195
195
Create an object which operates like a regular writer but maps dictionaries
196
196
onto output rows. The *fieldnames * parameter is a :mod: `sequence
197
197
<collections.abc> ` of keys that identify the order in which values in the
198
- dictionary passed to the :meth: `writerow ` method are written to file
198
+ dictionary passed to the :meth: `~csvwriter. writerow ` method are written to file
199
199
*f *. The optional *restval * parameter specifies the value to be
200
200
written if the dictionary is missing a key in *fieldnames *. If the
201
- dictionary passed to the :meth: `writerow ` method contains a key not found in
201
+ dictionary passed to the :meth: `~csvwriter. writerow ` method contains a key not found in
202
202
*fieldnames *, the optional *extrasaction * parameter indicates what action to
203
203
take.
204
204
If it is set to ``'raise' ``, the default value, a :exc: `ValueError `
@@ -352,8 +352,8 @@ Dialects and Formatting Parameters
352
352
353
353
To make it easier to specify the format of input and output records, specific
354
354
formatting parameters are grouped together into dialects. A dialect is a
355
- subclass of the :class: `Dialect ` class having a set of specific methods and a
356
- single :meth: ` validate ` method . When creating :class: `reader ` or
355
+ subclass of the :class: `Dialect ` class containing various attributes
356
+ describing the format of the CSV file . When creating :class: `reader ` or
357
357
:class: `writer ` objects, the programmer can specify a string or a subclass of
358
358
the :class: `Dialect ` class as the dialect parameter. In addition to, or instead
359
359
of, the *dialect * parameter, the programmer can also specify individual
@@ -470,9 +470,9 @@ DictReader objects have the following public attribute:
470
470
Writer Objects
471
471
--------------
472
472
473
- :class: `Writer ` objects (:class: `DictWriter ` instances and objects returned by
473
+ :class: `writer ` objects (:class: `DictWriter ` instances and objects returned by
474
474
the :func: `writer ` function) have the following public methods. A *row * must be
475
- an iterable of strings or numbers for :class: `Writer ` objects and a dictionary
475
+ an iterable of strings or numbers for :class: `writer ` objects and a dictionary
476
476
mapping fieldnames to strings or numbers (by passing them through :func: `str `
477
477
first) for :class: `DictWriter ` objects. Note that complex numbers are written
478
478
out surrounded by parens. This may cause some problems for other programs which
0 commit comments