Skip to content

Commit 362b57a

Browse files
committed
Document the c typecode for multiprocessing.Array.
1 parent c7f6535 commit 362b57a

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Doc/library/multiprocessing.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,11 +1559,13 @@ inherited by child processes.
15591559
value is actually a synchronized wrapper for the array.
15601560

15611561
*typecode_or_type* determines the type of the elements of the returned array:
1562-
it is either a ctypes type or a one character typecode of the kind used by
1563-
the :mod:`array` module. If *size_or_initializer* is an integer, then it
1564-
determines the length of the array, and the array will be initially zeroed.
1565-
Otherwise, *size_or_initializer* is a sequence which is used to initialize
1566-
the array and whose length determines the length of the array.
1562+
it is either a :ref:`ctypes type <ctypes-fundamental-data-types>` or a one
1563+
character typecode of the kind used by the :mod:`array` module. In addition,
1564+
the ``c`` typecode is an alias for :class:`ctypes.c_char`. If
1565+
*size_or_initializer* is an integer, then it determines the length of the
1566+
array, and the array will be initially zeroed. Otherwise,
1567+
*size_or_initializer* is a sequence which is used to initialize the array
1568+
and whose length determines the length of the array.
15671569

15681570
If *lock* is ``True`` (the default) then a new lock object is created to
15691571
synchronize access to the value. If *lock* is a :class:`Lock` or

0 commit comments

Comments
 (0)