1
Vote

cPickle.Unpickler unable to load output from cPickle.dumps

description

IronPython 2.7.3 (2.7.0.40) on .NET 4.0.30319.269 (32-bit)
Type "help", "copyright", "credits" or "license" for more information.
import cPickle, cStringIO
s = cPickle.dumps('\r\n')
f = cStringIO.StringIO(s)
t = cPickle.Unpickler(f).load()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
cPickle.UnpicklingError: invalid opcode: <System.Char object at 0x000000000000002B []>

comments