@@ -71,13 +71,6 @@ The :mod:`!csv` module defines the following functions:
7171 automatic data type conversion is performed unless the :data: `QUOTE_NONNUMERIC ` format
7272 option is specified (in which case unquoted fields are transformed into floats).
7373
74- Assume that :file: `eggs.csv ` contains:
75-
76- .. code-block :: text
77-
78- Spam Spam Spam Spam Spam |Baked Beans|
79- Spam |Lovely Spam| |Wonderful Spam|
80-
8174 A short usage example::
8275
8376 >>> import csv
@@ -88,6 +81,13 @@ The :mod:`!csv` module defines the following functions:
8881 Spam, Spam, Spam, Spam, Spam, Baked Beans
8982 Spam, Lovely Spam, Wonderful Spam
9083
84+ where :file: `eggs.csv ` contains:
85+
86+ .. code-block :: text
87+
88+ Spam Spam Spam Spam Spam |Baked Beans|
89+ Spam |Lovely Spam| |Wonderful Spam|
90+
9191
9292 .. function :: writer(csvfile, /, dialect='excel', **fmtparams)
9393
@@ -191,14 +191,6 @@ The :mod:`!csv` module defines the following classes:
191191 .. versionchanged :: 3.8
192192 Returned rows are now of type :class: `dict `.
193193
194- Assume that :file: `names.csv ` contains:
195-
196- .. code-block :: text
197-
198- first_name,last_name
199- Eric,Idle
200- John,Cleese
201-
202194 A short usage example::
203195
204196 >>> import csv
@@ -213,6 +205,14 @@ The :mod:`!csv` module defines the following classes:
213205 >>> print(row)
214206 {'first_name': 'John', 'last_name': 'Cleese'}
215207
208+ where :file: `names.csv ` contains:
209+
210+ .. code-block :: text
211+
212+ first_name,last_name
213+ Eric,Idle
214+ John,Cleese
215+
216216
217217 .. class :: DictWriter(f, fieldnames, restval='', extrasaction='raise', \
218218 dialect='excel', *args, **kwds)
0 commit comments