Python to C++ in a pickle

Courageous jkraska1 at san.rr.com
Tue Jul 4 15:58:21 EDT 2000


Larry Whitley wrote:
> 
> I'd like to pickle an object in python and unpickle it in C++.  The object
> in question is a python dictionary so it will have to go into a C++ map.
> Has someone done this and is willing to share?  Or, is the cPickle source
> available on the web somewhere?

To do this in a general way, you'll have to keep look-aside metadata
and make certain that the pickling mechanism complies with the
perceived types of information that are expected by your C++
client. I don't know anything about pickling, but I suspect it
doesn't do this.

Isn't cPickle source part of the python source distribution? I
think so....

C/



More information about the Python-list mailing list