Re: Lost in __setstate__() in C++ and swig

2007-09-13 Thread Amaury Forgeot d'Arc
Hello, Martin Drautzburg a écrit : > I am trying to cPickle/unpickle a C++ extension class with some private > data members. I wrote __getstate__() and __setstate__ in C++ (I have > to, due to the private data). Pickling writes the following file: > > ccopy_reg > _reconstructor >

Lost in __setstate__() in C++ and swig

2007-09-11 Thread Martin Drautzburg
I am trying to cPickle/unpickle a C++ extension class with some private data members. I wrote __getstate__() and __setstate__ in C++ (I have to, due to the private data). Pickling writes the following file: ccopy_reg _reconstructor p1 (cpyramid MidiBytes