diff options
author | Fred Drake <fdrake@acm.org> | 2000-04-03 20:13:55 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-04-03 20:13:55 (GMT) |
commit | 38e5d27caee56b6958e0034e342abb48e6100390 (patch) | |
tree | 6a0c853da853123dd2e628e8ec187517250c2530 /Doc/lib/libmarshal.tex | |
parent | 659ebfa79e891fc5e2480cd66c157970df57c451 (diff) | |
download | cpython-38e5d27caee56b6958e0034e342abb48e6100390.zip cpython-38e5d27caee56b6958e0034e342abb48e6100390.tar.gz cpython-38e5d27caee56b6958e0034e342abb48e6100390.tar.bz2 |
Merged changes from the 1.5.2p2 release.
(Very rough.)
Diffstat (limited to 'Doc/lib/libmarshal.tex')
-rw-r--r-- | Doc/lib/libmarshal.tex | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/lib/libmarshal.tex b/Doc/lib/libmarshal.tex index be2a717..f24399e 100644 --- a/Doc/lib/libmarshal.tex +++ b/Doc/lib/libmarshal.tex @@ -62,7 +62,8 @@ The module defines these functions: Write the value on the open file. The value must be a supported type. The file must be an open file object such as \code{sys.stdout} or returned by \function{open()} or - \function{posix.popen()}. + \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, a \exception{ValueError} exception is raised --- but garbage data @@ -73,7 +74,8 @@ The module defines these functions: \begin{funcdesc}{load}{file} 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. + \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 marshalled with \function{dump()}, \function{load()} will substitute |