summaryrefslogtreecommitdiffstats
path: root/Lib/multiprocessing/managers.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-12-21 10:03:24 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-12-21 10:03:24 (GMT)
commitde911b2915476938c66855d91df6fa4bbd77b39f (patch)
treeaba25854f48dd0b7f99ef21d5e86ab7c6ad5a8cb /Lib/multiprocessing/managers.py
parent12f65d1fefde68ae142b96075917012a61cb8abf (diff)
downloadcpython-de911b2915476938c66855d91df6fa4bbd77b39f.zip
cpython-de911b2915476938c66855d91df6fa4bbd77b39f.tar.gz
cpython-de911b2915476938c66855d91df6fa4bbd77b39f.tar.bz2
Issue #12708: Add starmap() and starmap_async() methods (similar to itertools.starmap()) to multiprocessing.Pool.
Patch by Hynek Schlawack.
Diffstat (limited to 'Lib/multiprocessing/managers.py')
-rw-r--r--Lib/multiprocessing/managers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/multiprocessing/managers.py b/Lib/multiprocessing/managers.py
index f42d353..5cae4c1 100644
--- a/Lib/multiprocessing/managers.py
+++ b/Lib/multiprocessing/managers.py
@@ -1066,11 +1066,12 @@ ArrayProxy = MakeProxyType('ArrayProxy', (
PoolProxy = MakeProxyType('PoolProxy', (
'apply', 'apply_async', 'close', 'imap', 'imap_unordered', 'join',
- 'map', 'map_async', 'terminate'
+ 'map', 'map_async', 'starmap', 'starmap_async', 'terminate'
))
PoolProxy._method_to_typeid_ = {
'apply_async': 'AsyncResult',
'map_async': 'AsyncResult',
+ 'starmap_async': 'AsyncResult',
'imap': 'Iterator',
'imap_unordered': 'Iterator'
}