Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d5cd65b

Browse files
committed
make multiprocessing.sharedctypes.Value's lock argument a keyword-only argument for real
1 parent ce279a7 commit d5cd65b

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Lib/multiprocessing/sharedctypes.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,10 @@ def RawArray(typecode_or_type, size_or_initializer):
6262
result.__init__(*size_or_initializer)
6363
return result
6464

65-
def Value(typecode_or_type, *args, **kwds):
65+
def Value(typecode_or_type, *args, lock=None):
6666
'''
6767
Return a synchronization wrapper for a Value
6868
'''
69-
lock = kwds.pop('lock', None)
70-
if kwds:
71-
raise ValueError('unrecognized keyword argument(s): %s' % list(kwds.keys()))
7269
obj = RawValue(typecode_or_type, *args)
7370
if lock is None:
7471
lock = RLock()

0 commit comments

Comments
 (0)