[Python-checkins] python/dist/src/Doc/lib libcsv.tex,1.6,1.7

montanaro@users.sourceforge.net montanaro@users.sourceforge.net
Wed, 02 Jul 2003 08:32:50 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv10761

Modified Files:
	libcsv.tex 
Log Message:
Note that csv files (when they are actual files) must be opened in 'b'inary
mode.  Note that the only restriction on the csvfile passed to writer
objects is that it have a write method.



Index: libcsv.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libcsv.tex,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** libcsv.tex	4 Jun 2003 15:30:13 -0000	1.6
--- libcsv.tex	2 Jul 2003 15:32:48 -0000	1.7
***************
*** 55,59 ****
  {}\var{csvfile}.  \var{csvfile} can be any object which supports the
  iterator protocol and returns a string each time its \method{next}
! 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}
--- 55,61 ----
  {}\var{csvfile}.  \var{csvfile} can be any object which supports the
  iterator protocol and returns a string each time its \method{next}
! method is called.  If \var{csvfile} is a file object, it must be opened with
! the 'b' flag on platforms where that makes a difference.  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}
***************
*** 72,76 ****
                           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
--- 74,81 ----
                           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.  \var{csvfile} can be any
! object with a \function{write} method.  If \var{csvfile} is a file object,
! it must be opened with the 'b' flag on platforms where that makes a
! difference.  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
***************
*** 126,130 ****
  has fewer fields than the fieldnames sequence, the remaining keys take the
  value of the optiona \var{restval} parameter.  All other parameters are
! interpreted as for regular readers.
  \end{classdesc}
  
--- 131,135 ----
  has fewer fields than the fieldnames sequence, the remaining keys take the
  value of the optiona \var{restval} parameter.  All other parameters are
! interpreted as for \class{reader} objects.
  \end{classdesc}
  
***************
*** 144,148 ****
  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 regular writers.
  \end{classdesc}
  
--- 149,153 ----
  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.
  \end{classdesc}