[IronPython] CPickle problem
Don Sawatzky
donsaw at comcast.net
Mon Feb 15 16:41:07 CET 2010
This assert works in CPython 2.6 and not in IronPython 2.6.1 RC 1 with a failure
in dumps():
from collections import namedtuple
# verify that instances can be pickled
from cPickle import loads, dumps
Point = namedtuple('Point', 'x, y', False)
p = Point(x=10, y=20)
assert p == loads(dumps(p))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100215/bd533c40/attachment.html>
More information about the Ironpython-users
mailing list