Can the below example be fixed to work? Thanks, Alan Isaac import multiprocessing as mp
class Test(object):
pass
def class_factory(x):
class ConcreteTest(Test):
_x = x
return ConcreteTest
def f(cls):
print cls._x
if __name__ == '__main__':
pool = mp.Pool(2)
pool.map(f, [class_factory(i) for i in range(4)])
--
http://mail.python.org/mailman/listinfo/python-list
