a hint is wanted.
File "/home/wrk/unladen-trunk/Lib/multiprocessing/pool.py", line 422, in get raise self._value
def f(x):
return x+1
if __name__ == "__main__":
from multiprocessing import Pool
p = Pool(50)
print sum(p.map(f, range(150)))
The former runs OK.
Well, my function "f" is much more heavy and return more data, but there is neither any daemon processes nor recursion at all.
Any ideas?
P.S. I try u-s, because recently I start to get an error also with CPython. It is different though:
Traceback (most recent call last):
File "/usr/lib/python2.6/multiprocessing/process.py", line 232, in _bootstrap
self.run()
File "/usr/lib/python2.6/multiprocessing/process.py", line 88, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python2.6/multiprocessing/pool.py", line 71, in worker
put((job, i, result))
File "/usr/lib/python2.6/multiprocessing/queues.py", line 366, in put
return send(obj)
RuntimeError: maximum recursion depth exceeded while calling a Python object
best regards
--
Valery A.Khamenya