[Python-Dev] Re: [Python-checkins] python/dist/src/Python marshal.c, 1.79, 1.80 (original) (raw)

Armin Rigo arigo at tunes.org
Mon Dec 20 13:31:32 CET 2004


Hi!

A single-character diff...

On Mon, Dec 20, 2004 at 04:25:59AM -0800, arigo at users.sourceforge.net wrote:

--- marshal.c 27 Jun 2004 16:51:46 -0000 1.79 +++ marshal.c 20 Dec 2004 12:25:57 -0000 1.80 @@ -893,7 +893,7 @@ { PyObject *x; int version = PyMARSHALVERSION; - if (!PyArgParseTuple(args, "O|i:dumps", &x, version)) + if (!PyArgParseTuple(args, "O|i:dumps", &x, &version)) return NULL; return PyMarshalWriteObjectToString(x, version); }

Crash. Which means that there is no way in 2.4.0 to marshal an object in the old version format as a string -- you'd have to work around by writing a real file and reading it back :-(

Armin



More information about the Python-Dev mailing list