Message90228
| Author |
ede |
| Recipients |
ede |
| Date |
2009年07月07日.11:39:01 |
| SpamBayes Score |
4.3591908e-11 |
| Marked as misclassified |
No |
| Message-id |
<1246966744.58.0.524623595855.issue6433@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
In multiprocessing, if you give a pool.map a zero-length iterator and
specify a nonzero chunksize, the process hangs indefinitely. Example:
import multiprocessing
pool = multiprocessing.Pool()
pool.map(len, [], chunksize=1)
# hang forever
Attached simple testcase and simple fix. I observed this behavior on 2.6
and 3.1, but only verified the patch on 3.1. Unless the line numbers
changed it will probably fix it on 2.6 as well. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年07月07日 11:39:04 | ede | set | recipients:
+ ede |
| 2009年07月07日 11:39:04 | ede | set | messageid: <1246966744.58.0.524623595855.issue6433@psf.upfronthosting.co.za> |
| 2009年07月07日 11:39:03 | ede | link | issue6433 messages |
| 2009年07月07日 11:39:02 | ede | create |
|