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

Aahz aahz at pythoncraft.com
Mon Dec 20 18:17:53 CET 2004


On Mon, Dec 20, 2004, Armin Rigo wrote:
>
> 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 :-(

Brown bag time?
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"19. A language that doesn't affect the way you think about programming,
is not worth knowing."  --Alan Perlis


More information about the Python-Dev mailing list