projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce279a7
)
make multiprocessing.sharedctypes.Value's lock argument a keyword-only argument for...
author
Benjamin Peterson
<benjamin@python.org>
Fri, 27 Jun 2008 22:16:47 +0000
(22:16 +0000)
committer
Benjamin Peterson
<benjamin@python.org>
Fri, 27 Jun 2008 22:16:47 +0000
(22:16 +0000)
Lib/multiprocessing/sharedctypes.py
patch
|
blob
|
history
diff --git
a/Lib/multiprocessing/sharedctypes.py
b/Lib/multiprocessing/sharedctypes.py
index d68c1da4bb5f29d9a79c0f1f07bebed4aa1d2614..45826dd069e9e8dd459e7ba75902a8e4f7c524ad 100644
(file)
--- 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()