Re: [Python-Dev] How to pickle class derived from c++ extension

2007-09-15 Thread Aahz
On Fri, Sep 14, 2007, Martin Drautzburg wrote: > > I understand that I can picke an extension class written > in C/C++ by providing a __reduce__() method along with > __getstate__()/__setstate__(). While I still havent gotten this to > work, my main question is: > > How could I possibly pickle an o

[Python-Dev] How to pickle class derived from c++ extension

2007-09-15 Thread Martin Drautzburg
I understand that I can picke an extension class written in C/C++ by providing a __reduce__() method along with __getstate__()/__setstate__(). While I still havent gotten this to work, my main question is: How could I possibly pickle an object of a python class which is derived from the C++ ex