diff options
author | Armin Rigo <arigo@tunes.org> | 2004-12-20 12:25:57 (GMT) |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2004-12-20 12:25:57 (GMT) |
commit | 2ccea1785603ad35a05f75f40e9dc7fc82caa346 (patch) | |
tree | d20a28547d53beb536dd97b5a11d238945d42c18 /Doc/lib | |
parent | f964154b8cb74a05a3664cd34e938c0298f97680 (diff) | |
download | cpython-2ccea1785603ad35a05f75f40e9dc7fc82caa346.zip cpython-2ccea1785603ad35a05f75f40e9dc7fc82caa346.tar.gz cpython-2ccea1785603ad35a05f75f40e9dc7fc82caa346.tar.bz2 |
Any call to marshal.dumps() with the new optional argument 'version' just
immediately segfaults, due to a typo! This was obviously never tested...
Added a test for it, and also fixed the documentation.
Diffstat (limited to 'Doc/lib')
-rw-r--r-- | Doc/lib/libmarshal.tex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/lib/libmarshal.tex b/Doc/lib/libmarshal.tex index 53ca668..d3dd835 100644 --- a/Doc/lib/libmarshal.tex +++ b/Doc/lib/libmarshal.tex @@ -62,7 +62,7 @@ operating on strings. The module defines these functions: -\begin{funcdesc}{dump}{value, file} +\begin{funcdesc}{dump}{value, file\optional{, version}} 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 @@ -75,7 +75,7 @@ The module defines these functions: read back by \function{load()}. \versionadded[The \var{version} argument indicates the data - format that \code{dumps} should use.]{2.4} + format that \code{dump} should use (see below)]{2.4} \end{funcdesc} \begin{funcdesc}{load}{file} @@ -96,7 +96,7 @@ The module defines these functions: contains an object that has) an unsupported type. \versionadded[The \var{version} argument indicates the data - format that \code{dumps} should use.]{2.4} + format that \code{dumps} should use (see below)]{2.4} \end{funcdesc} \begin{funcdesc}{loads}{string} |