What is the output? 2011/1/28, Alan <alan.is...@gmail.com>: > 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 >
-- Enviado desde mi dispositivo móvil Diego I. Hidalgo D. -- http://mail.python.org/mailman/listinfo/python-list