Issue31914
Created on 2017-10-31 20:45 by dilyan.palauzov, last changed 2022-04-11 14:58 by admin. This issue is now closed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 30191 | miss-islington, 2021-12-19 00:16 | ||
| PR 30191 | miss-islington, 2021-12-19 00:16 | ||
| PR 30192 | miss-islington, 2021-12-19 00:16 | ||
| Messages (5) | |||
|---|---|---|---|
| msg305337 - (view) | Author: Дилян Палаузов (dilyan.palauzov) | Date: 2017-10-31 20:45 | |
https://docs.python.org/3/library/multiprocessing.html#multiprocessing.pool.Pool.starmap says: starmap(func, iterable[, chunksize]) Like map() except that the elements of the iterable are expected to be iterables that are unpacked as arguments. Hence an iterable of [(1,2), (3, 4)] results in [func(1,2), func(3,4)]. If it was like map() then it would have returned an iterator. Please clarify, that Pool.map and Pool.starmap return list. |
|||
| msg305338 - (view) | Author: Дилян Палаузов (dilyan.palauzov) | Date: 2017-10-31 20:48 | |
Pool.starmap is not like map from the standard library, as the hyperlinking on the word map() suggests, but like Pool.map(). The latter talks about the chunksize parameter, but the former and Pool.starmap don't. |
|||
| msg305500 - (view) | Author: Дилян Палаузов (dilyan.palauzov) | Date: 2017-11-03 19:29 | |
If the idea is one day to switch the return type to an iterable/generator, returning from starmap() before all parallel executions have completed, this needs to be documented and the typeshed adjusted accordingly. |
|||
| msg408862 - (view) | Author: Alex Waygood (AlexWaygood) * ![]() |
Date: 2021-12-18 17:25 | |
This appears to have been fixed in PR 26560 in the main branch, but it might be nice to backport it to 3.10 and 3.9 |
|||
| msg408877 - (view) | Author: Alex Waygood (AlexWaygood) * ![]() |
Date: 2021-12-19 00:15 | |
PR 30191 and PR 30192 are backports |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:58:53 | admin | set | github: 76095 |
| 2021-12-26 11:17:00 | AlexWaygood | set | keywords:
patch, patch status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2021-12-19 00:16:43 | miss-islington | set | pull_requests: + pull_request28413 |
| 2021-12-19 00:16:18 | miss-islington | set | keywords:
+ patch nosy: + miss-islington pull_requests:
+ pull_request28412 |
| 2021-12-19 00:16:14 | miss-islington | set | keywords:
+ patch nosy: + miss-islington pull_requests:
+ pull_request28411 |
| 2021-12-19 00:15:23 | AlexWaygood | set | messages: + msg408877 |
| 2021-12-18 17:25:18 | AlexWaygood | set | versions:
+ Python 3.9, Python 3.10, - Python 3.6 nosy: + AlexWaygood, mdk messages: + msg408862 type: enhancement -> behavior |
| 2017-11-03 19:29:34 | dilyan.palauzov | set | messages: + msg305500 |
| 2017-10-31 20:48:05 | dilyan.palauzov | set | messages: + msg305338 |
| 2017-10-31 20:45:13 | dilyan.palauzov | create | |
