Message8088
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
>>> |
|
Date |
User |
Action |
Args |
2013-08-26 14:27:20 | irmen | set | recipients:
+ irmen |
2013-08-26 14:27:20 | irmen | set | messageid: <1377527240.72.0.90884240554.issue2077@psf.upfronthosting.co.za> |
2013-08-26 14:27:20 | irmen | link | issue2077 messages |
2013-08-26 14:27:19 | irmen | create | |
|