[C++-sig] Pickle python subclass of C++ interface

John Reid j.reid at mail.cryst.bbk.ac.uk
Sat Jul 17 11:17:12 CEST 2010


Hi,

I'm using boost.python. I want to pickle some python subclasses of a C++ 
base. The C++ base does not have any state, it is just an interface. Is 
there an easy way to ask the python pickling machinery to ignore the C++ 
base? I'm not sure if I should use the boost.python pickling support or 
go directly down the route described at
http://docs.python.org/library/pickle.html#pickling-and-unpickling-extension-types

Thanks,
John.



More information about the Cplusplus-sig mailing list