[Python-Dev]
Re: [Python-checkins] python/dist/src/Python marshal.c, 1.79, 1.80
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 = Py_MARSHAL_VERSION;
> - if (!PyArg_ParseTuple(args, "O|i:dumps", &x, version))
> + if (!PyArg_ParseTuple(args, "O|i:dumps", &x, &version))
> return NULL;
> return PyMarshal_WriteObjectToString(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