diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2012-05-29 11:53:00 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2012-05-29 11:53:00 (GMT) |
commit | aa88d32574af0645c0a44530c6539475821174fd (patch) | |
tree | ac4045054f624cc6d7f913b5be0ca6ffd5f983cb /Doc/library | |
parent | 4126a7dc17cf15167cccd76dc49f348fb560b255 (diff) | |
parent | d3f0882dfb3a15d604de1b1620b2bf8de9d643bb (diff) | |
download | cpython-aa88d32574af0645c0a44530c6539475821174fd.zip cpython-aa88d32574af0645c0a44530c6539475821174fd.tar.gz cpython-aa88d32574af0645c0a44530c6539475821174fd.tar.bz2 |
Merged upstream changes.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/multiprocessing.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst index 722f00c..43ae086 100644 --- a/Doc/library/multiprocessing.rst +++ b/Doc/library/multiprocessing.rst @@ -953,7 +953,7 @@ Shared :mod:`ctypes` Objects It is possible to create shared objects using shared memory which can be inherited by child processes. -.. function:: Value(typecode_or_type, *args[, lock]) +.. function:: Value(typecode_or_type, *args, lock=True) Return a :mod:`ctypes` object allocated from shared memory. By default the return value is actually a synchronized wrapper for the object. @@ -1045,7 +1045,7 @@ processes. attributes which allow one to use it to store and retrieve strings -- see documentation for :mod:`ctypes`. -.. function:: Array(typecode_or_type, size_or_initializer, *args[, lock]) +.. function:: Array(typecode_or_type, size_or_initializer, *, lock=True) The same as :func:`RawArray` except that depending on the value of *lock* a process-safe synchronization wrapper may be returned instead of a raw ctypes @@ -1060,7 +1060,7 @@ processes. Note that *lock* is a keyword-only argument. -.. function:: Value(typecode_or_type, *args[, lock]) +.. function:: Value(typecode_or_type, *args, lock=True) The same as :func:`RawValue` except that depending on the value of *lock* a process-safe synchronization wrapper may be returned instead of a raw ctypes |