Message8088

Author irmen
Recipients irmen
Date 2013-08-26.14:27:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1377527240.72.0.90884240554.issue2077@psf.upfronthosting.co.za>
In-reply-to
Content
marshal.dump(s) doesn't raise the appropriate ValueError when asked to marshal an unmarshalable object. Rather, it returns the string "?".

Observed behavior in Jython 2.7-b1:

>>> import marshal
>>> class Test(object): pass
...
>>> marshal.dumps(Test())
'?'
>>>


Expected behavior as shown by CPython 2.7:

>>> import marshal
>>> class Test(object): pass
...
>>> marshal.dumps(Test())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: unmarshallable object
>>>
History
Date User Action Args
2013-08-26 14:27:20irmensetrecipients: + irmen
2013-08-26 14:27:20irmensetmessageid: <1377527240.72.0.90884240554.issue2077@psf.upfronthosting.co.za>
2013-08-26 14:27:20irmenlinkissue2077 messages
2013-08-26 14:27:19irmencreate