Message364184
| Author | pablogsal |
|---|---|
| Recipients | AMDmi3, arekm, davin, koobs, pablogsal, pitrou |
| Date | 2020-03-14.15:41:11 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1584200472.01.0.707209051367.issue38744@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
Also, notice that writing
Pool().map(sleep, [0.01] * 10)
is out of contact as the Pool object can
be collected immediately and there is no
proper termination and cleanup. The correct
way is to use the context manager:
with Pool() as pool:
pool.map(sleep, [0.01] * 10) |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2020-03-14 15:41:12 | pablogsal | set | recipients: + pablogsal, arekm, pitrou, koobs, davin, AMDmi3 |
| 2020-03-14 15:41:12 | pablogsal | set | messageid: <1584200472.01.0.707209051367.issue38744@roundup.psfhosted.org> |
| 2020-03-14 15:41:12 | pablogsal | link | issue38744 messages |
| 2020-03-14 15:41:11 | pablogsal | create | |