[docs] [issue25201] lock of multiprocessing.Value is not a keyword-only argument

Martin Panter report at bugs.python.org
Mon Sep 21 08:00:06 CEST 2015


Martin Panter added the comment:

I’m not familiar with this module, but I believe “lock” is indeed keyword-only. If you were to try a positional argument, it would be picked up as part of *args:

>>> multiprocessing.Value("I")  # Default to 0, lock=True
<Synchronized wrapper for c_uint(0)>
>>> multiprocessing.Value("I", False)  # False == 0, still lock=True
<Synchronized wrapper for c_uint(0)>
>>> multiprocessing.Value("I", lock=False)
c_uint(0)

----------
nosy: +martin.panter

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25201>
_______________________________________


More information about the docs mailing list