summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-06-27 22:16:47 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-06-27 22:16:47 (GMT)
commitd5cd65b72ca62002f879c7932b85ba30968e25af (patch)
tree3ae1182175dd9195dd4aa6de9c375dc2a6f7d875
parentce279a727592646978689dc2408b8245253662d9 (diff)
downloadcpython-d5cd65b72ca62002f879c7932b85ba30968e25af.zip
cpython-d5cd65b72ca62002f879c7932b85ba30968e25af.tar.gz
cpython-d5cd65b72ca62002f879c7932b85ba30968e25af.tar.bz2
make multiprocessing.sharedctypes.Value's lock argument a keyword-only argument for real
-rw-r--r--Lib/multiprocessing/sharedctypes.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/multiprocessing/sharedctypes.py b/Lib/multiprocessing/sharedctypes.py
index d68c1da..45826dd 100644
--- a/Lib/multiprocessing/sharedctypes.py
+++ b/Lib/multiprocessing/sharedctypes.py
@@ -62,13 +62,10 @@ def RawArray(typecode_or_type, size_or_initializer):
result.__init__(*size_or_initializer)
return result
-def Value(typecode_or_type, *args, **kwds):
+def Value(typecode_or_type, *args, lock=None):
'''
Return a synchronization wrapper for a Value
'''
- lock = kwds.pop('lock', None)
- if kwds:
- raise ValueError('unrecognized keyword argument(s): %s' % list(kwds.keys()))
obj = RawValue(typecode_or_type, *args)
if lock is None:
lock = RLock()