Hey all,
I've got a pyGTK linux application that I'm trying to port to win32, and I've
run into a bug that's been driving me mad this last couple of weeks.
I finally managed to get the app to run a few days ago, but I had to all but
disable the multiprocessing module (.
Turns out, far as I can tell, that the biggest difference with how
multiprocessing works in linux versus win32 is the lack of forking in windows,
which, though my CS is a bit hazy on the topic, means that there is less (no?)
shared state between the processes. The end result is that multiprocess needs
to pipe pickled data to another process in win32 while it doesn't in linux.
This has led me to the real problem which seems to be that I have instantiated
objects that multiprocessing needs to unpickle but is failing.
Does anyone have any advice on making sure objects are picklable/unpicklable?
I've done some preliminary reading but so far mostly it's mostly vague stuff
like "The idea is to define __getstate__ and __setstate__ methods" without
giving much advice as to what might be good to handle in these methods.
Miles