[PyKDE] Pickle with QT

Phil Thompson phil at riverbankcomputing.co.uk
Tue Mar 21 23:43:35 GMT 2006


On Tuesday 21 March 2006 4:08 pm, Maxwell Bottiger wrote:
> Hey all,
>
> I wanted to make a really simple save/load procedure for my Qt application.
> I was hoping I could use pickle to capture the state of my whole class and
> write it out, but whenever I try this I get a seg fault in sip.  I'll show
> the backtrace and some of the code below.  This is my first try so any
> pointers (no pun intended) would be appreciated.

SIP generated types cannot be pickled. It may be possible to add support in 
the future for simple types - but I you'll never be able to pickle anything 
complex because of all the internal state.

However trying to do so shouldn't cause a seg fault - that will be fixed in 
tonight's snapshot.

Phil




More information about the PyQt mailing list