[issue12708] multiprocessing.Pool is missing a starmap[_async]() method.

2011-12-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch committed. Thanks for your contribution! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue12708] multiprocessing.Pool is missing a starmap[_async]() method.

2011-12-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset b07b1e58582d by Antoine Pitrou in branch 'default': Issue #12708: Add starmap() and starmap_async() methods (similar to itertools.starmap()) to multiprocessing.Pool. http://hg.python.org/cpython/rev/b07b1e58582d -- nosy: +python-dev _

[issue12708] multiprocessing.Pool is missing a starmap[_async]() method.

2011-12-20 Thread Hynek Schlawack
Changes by Hynek Schlawack : Removed file: http://bugs.python.org/file24062/8a9e14cda106.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue12708] multiprocessing.Pool is missing a starmap[_async]() method.

2011-12-20 Thread Hynek Schlawack
Changes by Hynek Schlawack : Added file: http://bugs.python.org/file24063/c02fbcda56f3.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue12708] multiprocessing.Pool is missing a starmap[_async]() method.

2011-12-20 Thread Hynek Schlawack
Hynek Schlawack added the comment: You're right. I've updated the docs accordingly, thanks! -- ___ Python tracker ___ ___ Python-bugs

[issue12708] multiprocessing.Pool is missing a starmap[_async]() method.

2011-12-20 Thread Charles-François Natali
Charles-François Natali added the comment: Looks good to me, except for another minor nit: """ the elements of the `iterable` are expected to be tuples """ AFAICT, you just require the elements of `ìterables` to be iterables, not necessarily tuples. -- ___

[issue12708] multiprocessing.Pool is missing a starmap[_async]() method.

2011-12-20 Thread Hynek Schlawack
Changes by Hynek Schlawack : Removed file: http://bugs.python.org/file22860/mp-starmap-w-docs.diff ___ Python tracker ___ ___ Python-bugs-list

[issue12708] multiprocessing.Pool is missing a starmap[_async]() method.

2011-12-20 Thread Hynek Schlawack
Changes by Hynek Schlawack : Added file: http://bugs.python.org/file24062/8a9e14cda106.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue12708] multiprocessing.Pool is missing a starmap[_async]() method.

2011-12-20 Thread Hynek Schlawack
Hynek Schlawack added the comment: Thanks for the feedback Antoine! I updated the patch to latest default tip and added the requested tags to the docs. -- hgrepos: +97 ___ Python tracker

[issue12708] multiprocessing.Pool is missing a starmap[_async]() method.

2011-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: One nit: the patch needs "versionadded" tags for the two new functions. -- ___ Python tracker ___ _

[issue12708] multiprocessing.Pool is missing a starmap[_async]() method.

2011-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: This looks like a reasonable request to me, and the patch looks generally ok as well. -- nosy: +neologix, pitrou stage: -> patch review versions: -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.4 ___ Pyt

[issue12708] multiprocessing.Pool is missing a starmap[_async]() method.

2011-08-12 Thread Hynek Schlawack
Hynek Schlawack added the comment: No, that's just a helper function like the `mapstar` directly above. args[1] is the iterable with tuples that get unpacked as arguments. -- ___ Python tracker __

[issue12708] multiprocessing.Pool is missing a starmap[_async]() method.

2011-08-11 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: +def starmapstar(args): +return list(itertools.starmap(args[0], args[1])) Is your new function restricted to 2 arguments? -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue12708] multiprocessing.Pool is missing a starmap[_async]() method.

2011-08-08 Thread Hynek Schlawack
Changes by Hynek Schlawack : Removed file: http://bugs.python.org/file22859/mp-starmap.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue12708] multiprocessing.Pool is missing a starmap[_async]() method.

2011-08-08 Thread Hynek Schlawack
Hynek Schlawack added the comment: In all my excitement, I somehow presumed that the docstring automagically lands in the docs. Added doc entries to patch (I hope they aren't too crude, I'm not a native speaker). Same as first patch otherwise. -- Added file: http://bugs.python.org/fi

[issue12708] multiprocessing.Pool is missing a starmap[_async]() method.

2011-08-08 Thread Hynek Schlawack
New submission from Hynek Schlawack : After I've seen a co-worker to unpack tuples while using multiprocessing.Pool.map(), I realized that the module is missing a starmap() method like itertools has. I took it as a opportunity to contribute some code and implemented both starmap() and starmap