[Python-checkins] python/dist/src/Doc/lib libcsv.tex,1.13,1.14
montanaro at users.sourceforge.net
montanaro at users.sourceforge.net
Thu Apr 15 23:21:04 EDT 2004
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22996
Modified Files:
libcsv.tex
Log Message:
bring description of optional and keyword args for DictReader and DictWriter
classes into line with the actual code. I didn't see any obvious examples
of latex formatting for *args and **kwds so I just guessed.
Index: libcsv.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libcsv.tex,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** libcsv.tex 17 Mar 2004 01:24:17 -0000 1.13
--- libcsv.tex 16 Apr 2004 03:21:01 -0000 1.14
***************
*** 123,127 ****
restval=\constant{None}\optional{,
dialect=\code{'excel'}\optional{,
! fmtparam}}}}}}
Create an object which operates like a regular reader but maps the
information read into a dict whose keys are given by the optional
--- 123,127 ----
restval=\constant{None}\optional{,
dialect=\code{'excel'}\optional{,
! *args, **kwds}}}}}}
Create an object which operates like a regular reader but maps the
information read into a dict whose keys are given by the optional
***************
*** 134,139 ****
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 optional \var{restval} parameter. All other parameters are
! interpreted as for \class{reader} objects.
\end{classdesc}
--- 134,139 ----
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 optional \var{restval} parameter. Any other optional or
! keyword arguments are passed to the underlying \class{reader} instance.
\end{classdesc}
***************
*** 142,146 ****
restval=""\optional{,
extrasaction=\code{'raise'}\optional{,
! dialect=\code{'excel'}\optional{, fmtparam}}}}}
Create an object which operates like a regular writer but maps dictionaries
onto output rows. The \var{fieldnames} parameter identifies the order in
--- 142,147 ----
restval=""\optional{,
extrasaction=\code{'raise'}\optional{,
! dialect=\code{'excel'}\optional{,
! *args, **kwds}}}}}
Create an object which operates like a regular writer but maps dictionaries
onto output rows. The \var{fieldnames} parameter identifies the order in
***************
*** 152,157 ****
\var{extrasaction} parameter indicates what action to take. If it is set
to \code{'raise'} a \exception{ValueError} is raised. If it is set to
! \code{'ignore'}, extra values in the dictionary are ignored. All other
! parameters are interpreted as for \class{writer} objects.
Note that unlike the \class{DictReader} class, the \var{fieldnames}
--- 153,159 ----
\var{extrasaction} parameter indicates what action to take. If it is set
to \code{'raise'} a \exception{ValueError} is raised. If it is set to
! \code{'ignore'}, extra values in the dictionary are ignored. Any other
! optional or keyword arguments are passed to the underlying \class{writer}
! instance.
Note that unlike the \class{DictReader} class, the \var{fieldnames}
More information about the Python-checkins
mailing list