Home
last modified time | relevance | path

Searched refs:typecode (Results 1 – 18 of 18) sorted by relevance

/third_party/python/Lib/test/
Dtest_array.py24 def __init__(self, typecode, newarg=None): argument
149 for typecode in valid_typecodes:
151 a = array.array(typecode, values)
155 array.array, typecode, mformat_code, arraystr)
190 return typecodes[(typecodes.index(self.typecode)+1) % len(typecodes)]
193 a = array.array(self.typecode)
194 self.assertEqual(a.typecode, self.typecode)
196 self.assertRaises(TypeError, array.array, self.typecode, None)
199 a = array.array(self.typecode)
203 a = array.array(self.typecode, self.example)
[all …]
Dtest_re.py1393 for typecode in 'bBuhHiIlLfd':
1394 a = array.array(typecode)
/third_party/python/Lib/multiprocessing/dummy/
D__init__.py97 def Array(typecode, sequence, lock=True): argument
98 return array.array(typecode, sequence)
101 def __init__(self, typecode, value, lock=True): argument
102 self._typecode = typecode
/third_party/python/Modules/
Darraymodule.c30 char typecode; member
1684 if (self->ob_descr->typecode != 'u') { in array_array_fromunicode_impl()
1722 if (self->ob_descr->typecode != 'u') { in array_array_tounicode_impl()
1784 typecode_to_mformat_code(char typecode) in typecode_to_mformat_code() argument
1791 switch (typecode) { in typecode_to_mformat_code()
1889 make_array(PyTypeObject *arraytype, char typecode, PyObject *items) in make_array() argument
1898 typecode_obj = PyUnicode_FromOrdinal(typecode); in make_array()
1937 int typecode, in array__array_reconstructor_impl() argument
1958 for (descr = descriptors; descr->typecode != '\0'; descr++) { in array__array_reconstructor_impl()
1959 if ((int)descr->typecode == typecode) in array__array_reconstructor_impl()
[all …]
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/codecparsers/
Dgstmpegvideoparser.h77 #define GST_MPEG_VIDEO_PACKET_IS_SLICE(typecode) ((typecode) >= GST_MPEG_VIDEO_PACKET_SLICE_MIN && \ argument
78 (typecode) <= GST_MPEG_VIDEO_PACKET_SLICE_MAX)
/third_party/python/Doc/library/
Darray.rst68 .. class:: array(typecode[, initializer])
70 A new array whose items are restricted by *typecode*, and initialized
80 .. audit-event:: array.__new__ typecode,initializer array.array
94 .. attribute:: array.typecode
96 The typecode character used to create the array.
238 ``array(typecode, initializer)``. The *initializer* is omitted if the array is
239 empty, otherwise it is a string if the *typecode* is ``'u'``, otherwise it is a
Dtypes.rst288 as ``FrameType.f_locals`` or ``array.array.typecode``. This type is used as
Dmultiprocessing.rst1411 ctypes type or a one character typecode of the kind used by the :mod:`array`
1441 it is either a ctypes type or a one character typecode of the kind used by
1483 it is either a ctypes type or a one character typecode of the kind used by
1498 ctypes type or a one character typecode of the kind used by the :mod:`array`
1567 ctypes sharedctypes using type sharedctypes using typecode
1808 .. method:: Array(typecode, sequence)
1812 .. method:: Value(typecode, value)
/third_party/python/Modules/clinic/
Darraymodule.c.h457 int typecode,
466 int typecode; in array__array_reconstructor() local
485 typecode = PyUnicode_READ_CHAR(args[1], 0); in array__array_reconstructor()
496 … return_value = array__array_reconstructor_impl(module, arraytype, typecode, mformat_code, items); in array__array_reconstructor()
/third_party/python/Lib/ctypes/
D__init__.py142 def _check_size(typ, typecode=None): argument
146 if typecode is None:
148 typecode = typ._type_
149 actual, required = sizeof(typ), calcsize(typecode)
/third_party/python/Lib/
Dreprlib.py85 return "array('%s')" % x.typecode
86 header = "array('%s', [" % x.typecode
/third_party/python/Lib/multiprocessing/
Dmanagers.py47 return array.array, (a.typecode, a.tobytes())
1003 def __init__(self, typecode, value, lock=True): argument
1004 self._typecode = typecode
1014 def Array(typecode, sequence, lock=True): argument
1015 return array.array(typecode, sequence)
/third_party/node/deps/brotli/c/enc/
Dbrotli_bit_stream.c739 size_t typecode = NextBlockTypeCode(&code->type_code_calculator, block_type); in StoreBlockSwitch() local
744 BrotliWriteBits(code->type_depths[typecode], code->type_bits[typecode], in StoreBlockSwitch()
/third_party/skia/third_party/externals/brotli/c/enc/
Dbrotli_bit_stream.c739 size_t typecode = NextBlockTypeCode(&code->type_code_calculator, block_type); in StoreBlockSwitch() local
744 BrotliWriteBits(code->type_depths[typecode], code->type_bits[typecode], in StoreBlockSwitch()
/third_party/python/Doc/tutorial/
Dstdlib2.rst298 numbers (typecode ``"H"``) rather than the usual 16 bytes per entry for regular
/third_party/python/Doc/whatsnew/
D3.0.rst638 :meth:`tofile` instead. Also, the ``'c'`` typecode for array is
/third_party/gptfdisk/
DNEWS286 -t/--typecode, and -u/--partition-guid commands: If a -n/--new option
/third_party/python/Misc/
DHISTORY3076 constructor is given a str. Move the array module typecode documentation to