On Jan 28, 2:23 pm, Robert Kern <robert.k...@gmail.com> wrote:
> Send the (pickleable) factory and the arguments used to construct the 
> instance,
> not the unpickleable instance itself.
>
> def g(factory, i):
>      cls = factory(i)
>      print cls._x
>
> if __name__ == '__main__':
>        pool = mp.Pool(2)
>        pool.map(g, zip([class_factory] * 4, range(4)))


If I change that to g((factory,i)) it does work.

Thanks!

Alan
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to