[Python-checkins] CVS: python/dist/src/Doc/lib libmarshal.tex,1.16,1.16.4.1

Fred L. Drake fdrake@weyr.cnri.reston.va.us
Wed, 2 Feb 2000 11:30:48 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Doc/lib
In directory weyr:/home/fdrake/projects/python/Doc-152p1/lib

Modified Files:
      Tag: release152p1-patches
	libmarshal.tex 
Log Message:

In the descriptions of dump() and load(), point out that the file has
to be opened in binary mode.


Index: libmarshal.tex
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Doc/lib/libmarshal.tex,v
retrieving revision 1.16
retrieving revision 1.16.4.1
diff -C2 -r1.16 -r1.16.4.1
*** libmarshal.tex	1999/04/22 21:23:21	1.16
--- libmarshal.tex	2000/02/02 16:30:44	1.16.4.1
***************
*** 63,67 ****
    type.  The file must be an open file object such as
    \code{sys.stdout} or returned by \function{open()} or
!   \function{posix.popen()}.
  
    If the value has (or contains an object that has) an unsupported type,
--- 63,68 ----
    type.  The file must be an open file object such as
    \code{sys.stdout} or returned by \function{open()} or
!   \function{posix.popen()}.  It must be opened in binary mode
!   (\code{'wb'} or \code{'w+b'}).
  
    If the value has (or contains an object that has) an unsupported type,
***************
*** 74,78 ****
    Read one value from the open file and return it.  If no valid value
    is read, raise \exception{EOFError}, \exception{ValueError} or
!   \exception{TypeError}.  The file must be an open file object.
  
    \strong{Warning:} If an object containing an unsupported type was
--- 75,80 ----
    Read one value from the open file and return it.  If no valid value
    is read, raise \exception{EOFError}, \exception{ValueError} or
!   \exception{TypeError}.  The file must be an open file object opened
!   in binary mode (\code{'rb'} or \code{'r+b'}).
  
    \strong{Warning:} If an object containing an unsupported type was