Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Python to C++ in a pickle

2,347 views
Skip to first unread message

Larry Whitley

unread,
Jul 4, 2000, 3:00:00 AM7/4/00
to
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?

Larry

Courageous

unread,
Jul 4, 2000, 3:00:00 AM7/4/00
to

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/

Moshe Zadka

unread,
Jul 5, 2000, 3:00:00 AM7/5/00
to Larry Whitley
On Tue, 4 Jul 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?

Why use pickle? XML-RPC seems much better for this purpose.
--
Moshe Zadka <mos...@math.huji.ac.il>
There is no GOD but Python, and HTTP is its prophet.

richis...@gmail.com

unread,
Apr 2, 2015, 12:10:27 PM4/2/15
to
On Tuesday, July 4, 2000 at 12:00:00 AM UTC-7, 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?
>
> Larry

Check out http://www.picklingtools.com. It gives you C++ code for pickling
and unpickling as well as data structures for manipulating those structures.
0 new messages