[ale] python pickle data types
Jim Sculley
niceguyj at comcast.net
Wed Oct 24 18:57:52 EDT 2007
Jim Popovitch wrote:
> I've got a python problem, and Google isn't helping me much (could be
> because I am looking for something much saner that what Google searches
> suggest....)
>
> I'm using an existing SWIG data type (from someone else's code+library)
> like so:
>
> b = blahGetBigBlobOfData()
> with open('/tmp/buffer', 'wb') as f:
> pickle.dump(b,f)
>
> When run, I get this error:
>
> File "/usr/lib/python2.5/copy_reg.py", line 69, in _reduce_ex
> raise TypeError, "can't pickle %s objects" % base.__name__
> TypeError: can't pickle PySwigObject objects
>
>
Not everything is pickle-able.
http://docs.python.org/lib/node318.html
More information about the Ale
mailing list