pickle-ing two instances of the same class on MSW

Martin v. Loewis martin at v.loewis.de
Sat Nov 9 02:00:26 EST 2002


nw_moriarty at yahoo.com (Nigel Moriarty) writes:

> I have a list of two instances of the same class in a list which I can 
> pickle on LINUX but it fails on MSW with this error.
> 
> cPickle.PicklingError: Can't pickle two.Task: its not the same object as two.Task
> 
> which is stating the obvious.

No. It does not talk about the instances, it complains that the
instance claims to be a an instance of two.Task, however two.Task is
not the class of the instance. That may have happened when two was
reloaded, or when Task is a class nested within some class in two.

HTH,
Martin




More information about the Python-list mailing list