[Stackless] Problem Unpickling Class

olsongt at verizon.net olsongt at verizon.net
Thu Jul 27 16:47:38 CEST 2006


> From: Andrew Francis <andrewfr_ice at yahoo.com>
> Date: 2006/07/27 Thu AM 09:30:32 CDT
> To: Richard Tew <richard.m.tew at gmail.com>
> Cc: stackless at stackless.com
> Subject: Re: [Stackless] Problem Unpickling Class
> 
> Hello Richard and Colleagues:
> 
> On 7/27/06, Andrew Francis <andrewfr_ice at yahoo.com>
> wrote:
> 
> >I don't think it is possible to tell what is going
> >wrong from the code you have provided.  Since the
> >problem is where the data is unpickled, we would kind
> >of need to see where you call loads() as well.
> 
> >I imagine this is a straightforward pickling problem,
> >and doubt it is related to Stackless.  Do you think
> >this is caused because of some Stackless related
> >pickling that is going on?
> 
> It would be great if this is a straightforward
> pickling problem on my side. 
> 
> At this stage, I do not have enough knowledge to know
> if it is a problem with Stackless, cPickle, or the way
> I do things. 
> 
> Here is my unpickling code.
> 

This may or may not be your problem, but keep in mind that you're pickling the INSTANCES, not the classes.  If you don't manually import the classes themselves, then __class__ is going to point to a bad object.  If you import the appropriate classes first, it might work.

This has made me a little weary of pickling tasklets that are running class methods instead of functions.

-Grant

_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless



More information about the Stackless mailing list