On Mon, Dec 20, 2004, Armin Rigo wrote:
>
> Hi!
>
> A single-character diff...
>
> On Mon, Dec 20, 2004 at 04:25:59AM -0800, [EMAIL PROTECTED] 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 :-(
Brown bag time?
--
Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/
"19. A language that doesn't affect the way you think about programming,
is not worth knowing." --Alan Perlis
_______________________________________________
Python-Dev mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com