Home
last modified time | relevance | path

Searched refs:size_or_initializer (Results 1 – 5 of 5) sorted by relevance

/external/python/cpython2/Lib/multiprocessing/
Dsharedctypes.py81 def RawArray(typecode_or_type, size_or_initializer): argument
86 if isinstance(size_or_initializer, (int, long)):
87 type_ = type_ * size_or_initializer
92 type_ = type_ * len(size_or_initializer)
94 result.__init__(*size_or_initializer)
113 def Array(typecode_or_type, size_or_initializer, **kwds): argument
120 obj = RawArray(typecode_or_type, size_or_initializer)
D__init__.py241 def RawArray(typecode_or_type, size_or_initializer): argument
246 return RawArray(typecode_or_type, size_or_initializer)
255 def Array(typecode_or_type, size_or_initializer, **kwds): argument
260 return Array(typecode_or_type, size_or_initializer, **kwds)
/external/python/cpython3/Lib/multiprocessing/
Dsharedctypes.py54 def RawArray(typecode_or_type, size_or_initializer): argument
59 if isinstance(size_or_initializer, int):
60 type_ = type_ * size_or_initializer
65 type_ = type_ * len(size_or_initializer)
67 result.__init__(*size_or_initializer)
84 def Array(typecode_or_type, size_or_initializer, *, lock=True, ctx=None): argument
88 obj = RawArray(typecode_or_type, size_or_initializer)
Dcontext.py127 def RawArray(self, typecode_or_type, size_or_initializer): argument
130 return RawArray(typecode_or_type, size_or_initializer)
138 def Array(self, typecode_or_type, size_or_initializer, *, lock=True): argument
141 return Array(typecode_or_type, size_or_initializer, lock=lock,
/external/python/cpython2/Doc/library/
Dmultiprocessing.rst1159 .. function:: Array(typecode_or_type, size_or_initializer, *, lock=True)
1166 the :mod:`array` module. If *size_or_initializer* is an integer, then it
1168 Otherwise, *size_or_initializer* is a sequence which is used to initialize
1202 .. function:: RawArray(typecode_or_type, size_or_initializer)
1208 the :mod:`array` module. If *size_or_initializer* is an integer then it
1210 Otherwise *size_or_initializer* is a sequence which is used to initialize the
1233 .. function:: Array(typecode_or_type, size_or_initializer, *args[, lock])