[Python-checkins] python/nondist/sandbox/csv libcsv.tex,1.12,1.13
montanaro@users.sourceforge.net
montanaro@users.sourceforge.net
Wed, 26 Feb 2003 14:12:00 -0800
Update of /cvsroot/python/python/nondist/sandbox/csv
In directory sc8-pr-cvs1:/tmp/cvs-serv25749
Modified Files:
libcsv.tex
Log Message:
indicate that the dialect parameter to reader() and writer() factory
functions may be an instance of a dialect or a string referring to a
registered dialect
Index: libcsv.tex
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/csv/libcsv.tex,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** libcsv.tex 26 Feb 2003 20:24:53 -0000 1.12
--- libcsv.tex 26 Feb 2003 22:11:56 -0000 1.13
***************
*** 55,59 ****
method is called. An optional \var{dialect} parameter can be given
which is used to define a set of parameters specific to a particular CSV
! dialect. The other optional {}\var{fmtparam} keyword arguments can be
given to override individual formatting parameters in the current
dialect. For more information about the dialect and formatting
--- 55,61 ----
method is called. An optional \var{dialect} parameter can be given
which is used to define a set of parameters specific to a particular CSV
! dialect. It may be an instance of a subclass of the \class{Dialect}
! class or one of the strings returned by the \function{list_dialects}
! function. The other optional {}\var{fmtparam} keyword arguments can be
given to override individual formatting parameters in the current
dialect. For more information about the dialect and formatting
***************
*** 68,79 ****
dialect=\code{'excel'}\optional{, fmtparam}}}
Return a writer object responsible for converting the user's data into
! delimited strings on the given file-like object. An optional \var{dialect}
! parameter can be given which is used to define a set of parameters specific
! to a particular CSV dialect. The other optional \var{fmtparam} keyword
! arguments can be given to override individual formatting parameters in the
! current dialect. For more information about the dialect and formatting
! parameters, see section~\ref{fmt-params}, ``Dialects and Formatting
! Parameters'' for details of these parameters. To make it as easy as
! possible to interface with modules which implement the DB API, the value
\constant{None} is written as the empty string. While this isn't a
reversible transformation, it makes it easier to dump SQL NULL data values
--- 70,84 ----
dialect=\code{'excel'}\optional{, fmtparam}}}
Return a writer object responsible for converting the user's data into
! delimited strings on the given file-like object. An optional
! {}\var{dialect} parameter can be given which is used to define a set of
! parameters specific to a particular CSV dialect. It may be an instance
! of a subclass of the \class{Dialect} class or one of the strings
! returned by the \function{list_dialects} function. The other optional
! {}\var{fmtparam} keyword arguments can be given to override individual
! formatting parameters in the current dialect. For more information
! about the dialect and formatting parameters, see
! section~\ref{fmt-params}, ``Dialects and Formatting Parameters'' for
! details of these parameters. To make it as easy as possible to
! interface with modules which implement the DB API, the value
\constant{None} is written as the empty string. While this isn't a
reversible transformation, it makes it easier to dump SQL NULL data values