Message74179
I e.g. tried a minimal example with Pool.map():
>>> from multiprocessing import Pool
>>> p = Pool(5)
>>> def f(x):
... return x*x
...
>>> p.map(f, [1,2,3])
Process PoolWorker-1:
Traceback (most recent call last):
File "/home/gbr/devel/python/Lib/multiprocessing/process.py", line
231, in _bootstrap
self.run()
File "/home/gbr/devel/python/Lib/multiprocessing/process.py", line 88,
in run
self._target(*self._args, **self._kwargs)
File "/home/gbr/devel/python/Lib/multiprocessing/pool.py", line 57, in
worker
Process PoolWorker-2:
[some more exceptions]
task = get()
File "/home/gbr/devel/python/Lib/multiprocessing/queues.py", line 339,
in get
return recv()
AttributeError: 'module' object has no attribute 'f'
And then the prompt doesn't reappear. |
|
Date |
User |
Action |
Args |
2008-10-02 17:10:10 | georg.brandl | set | recipients:
+ georg.brandl, kjohnson, jnoller |
2008-10-02 17:10:09 | georg.brandl | set | messageid: <1222967409.99.0.507002383711.issue4012@psf.upfronthosting.co.za> |
2008-10-02 17:10:08 | georg.brandl | link | issue4012 messages |
2008-10-02 17:10:08 | georg.brandl | create | |
|