summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-08-31 05:44:54 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-08-31 05:44:54 (GMT)
commit6f6d7b93bc537908ed61353bc8fec0f1837e7711 (patch)
tree887b3f7decfafa2c9708c613dbfed50f361de86b
parent2f3e5483a3324b44fa5dbbb98859dc0ac42b6070 (diff)
downloadcpython-6f6d7b93bc537908ed61353bc8fec0f1837e7711.zip
cpython-6f6d7b93bc537908ed61353bc8fec0f1837e7711.tar.gz
cpython-6f6d7b93bc537908ed61353bc8fec0f1837e7711.tar.bz2
SF bug #797853: Small problems with the csv module's documentation
-rw-r--r--Doc/lib/libcsv.tex12
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/lib/libcsv.tex b/Doc/lib/libcsv.tex
index f585013..57ed88b 100644
--- a/Doc/lib/libcsv.tex
+++ b/Doc/lib/libcsv.tex
@@ -45,7 +45,7 @@ form using the \class{DictReader} and \class{DictWriter} classes.
\end{seealso}
-\subsection{Module Contents}
+\subsection{Module Contents \label{csv-contents}}
The \module{csv} module defines the following functions:
@@ -129,7 +129,7 @@ the value of \var{restval} will be used as the default value. If the row
read has more fields than the fieldnames sequence, the remaining data is
added as a sequence keyed by the value of \var{restkey}. If the row read
has fewer fields than the fieldnames sequence, the remaining keys take the
-value of the optiona \var{restval} parameter. All other parameters are
+value of the optional \var{restval} parameter. All other parameters are
interpreted as for \class{reader} objects.
\end{classdesc}
@@ -218,7 +218,7 @@ or \class{writer} objects, the programmer can specify a string or a subclass
of the \class{Dialect} class as the dialect parameter. In addition to, or
instead of, the \var{dialect} parameter, the programmer can also specify
individual formatting parameters, which have the same names as the
-attributes defined above for the \class{Dialect} class.
+attributes defined below for the \class{Dialect} class.
Dialects support the following attributes:
@@ -251,8 +251,8 @@ or which start with the \var{quotechar}. It defaults to \code{'"'}.
\begin{memberdesc}[Dialect]{quoting}
Controls when quotes should be generated by the writer. It can take on any
-of the \constant{QUOTE_*} constants defined below and defaults to
-\constant{QUOTE_MINIMAL}.
+of the \constant{QUOTE_*} constants (see section~\ref{csv-contents})
+and defaults to \constant{QUOTE_MINIMAL}.
\end{memberdesc}
\begin{memberdesc}[Dialect]{skipinitialspace}
@@ -264,7 +264,7 @@ is ignored. The default is \constant{False}.
\subsection{Reader Objects}
Reader objects (\class{DictReader} instances and objects returned by
-the \function{reader()}function) have the following public methods:
+the \function{reader()} function) have the following public methods:
\begin{methoddesc}[csv reader]{next}{}
Return the next row of the reader's iterable object as a list, parsed