[Stackless] Problem Unpickling Class
Andrew Francis
andrewfr_ice at yahoo.com
Thu Jul 27 18:46:47 CEST 2006
Hello Olson and Colleagues:
> 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 is an interesting observation. This is an area to
explore. If this is the case, then in a worse case
scenario, I could use reflection and load the
appropriate classes manually.
> This has made me a little weary of pickling tasklets
> that are running class methods instead of functions.
>From a software engineering perspective, I probably
will not shift to using functions. Better to figure
out how to make this work properly.
As a tangential note, I had read the argument that
"classless" or prototype languages (i.e., Self, Omega)
were better candidates for things like agent mobility.
Cheers,
Andrew
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless
More information about the Stackless
mailing list