Message327168
Quoting the PR:
Proposing a new kwarg in the __init__() method of multiprocessing.Pool named expect_initret.
This kwarg defaults to False. When set to True, the return value of the initializer function is passed to the function we are applying (i.e. func in Pool.map(func, ls)), as a kwarg named initret.
This PR includes thorough test coverage, and provides backwards compatibility (at least in Python3.x).
See blog post
https://thelaziestprogrammer.com/python/multiprocessing-pool-expect-initret-proposal
for example use cases, as well as an initial defense for why this makes the multiprocessing.Pool API more approachable, to more Python end-users, and augments the library. |
|
Date |
User |
Action |
Args |
2018-10-05 18:45:08 | terry.reedy | set | recipients:
+ terry.reedy, pitrou, davin, seanharr11 |
2018-10-05 18:45:08 | terry.reedy | set | messageid: <1538765108.86.0.545547206417.issue34837@psf.upfronthosting.co.za> |
2018-10-05 18:45:08 | terry.reedy | link | issue34837 messages |
2018-10-05 18:45:08 | terry.reedy | create | |
|