Sergio Oller
Sergio Oller
One might say that, on your first example, if there is no "you", then there is no need to say "Hello" to anyone, and therefore the original example, labelled as...
You can remove AlpsNMR from this list, since I backported the deprecation fix to the release branch (and it's released already)
Not that I know of... Each parallel task has its own memory space. While it may be possible to do that with `multiprocessing`, it may not be easy. Pull requests...
I am editing the answer as I read again the multiprocessing implementation. If you know the length in advance you can wrap the generator in a custom class that provides...
It seems `imap` is the way to go. https://stackoverflow.com/questions/26520781/multiprocessing-pool-whats-the-difference-between-map-async-and-imap I will look into it when I have time
Not really. Unfortunately lambda functions are not pickable, so they are not suitable for multiprocessing. There are some workarounds, see for instance: https://stackoverflow.com/questions/4827432/how-to-let-pool-map-take-a-lambda-function I'll close this because I can't fix...
Looks good! I don't have much free time right now to implement this. Feel free to submit a pull request if you want, otherwise I will do the work eventually...
Yes, just use a helper function: ``` def g(y, x): return f(x, y) parmap.map(g, range(100), x=1) ``` There is also https://docs.python.org/3.6/library/functools.html#functools.partial If you have a suggestion for an alternative API,...
I have some concerns with that approach: There is a use case where an extra argument is an iterable: ``` def times2(xlimits, x): xmin = xlimits[0] xmax = xlimits[1] if...