cpython: fa0563f3b7f7 (original) (raw)

--- a/Doc/library/csv.rst +++ b/Doc/library/csv.rst @@ -52,7 +52,7 @@ The :mod:csv module defines the follow csvfile can be any object which supports the :term:iterator protocol and returns a string each time its :meth:!__next__ method is called --- :term:file objects[](#l1.5) <file object> and list objects are both suitable. If csvfile is a file object,

@@ -427,7 +428,7 @@ The simplest example of reading a CSV fi Reading a file with an alternate format:: import csv

@@ -435,7 +436,7 @@ Reading a file with an alternate format: The corresponding simplest possible writing example is:: import csv

@@ -457,7 +458,7 @@ Registering a new dialect:: import csv csv.register_dialect('unixpwd', delimiter=':', quoting=csv.QUOTE_NONE)

A slightly more advanced use of the reader --- catching and reporting errors:: @@ -482,7 +483,7 @@ done:: .. rubric:: Footnotes -.. [#] If newline='' is not specified, newlines embedded inside quoted fields