Home
last modified time | relevance | path

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

/third_party/python/Lib/test/
Dtest_array.py26 def __init__(self, typecode, newarg=None): argument
168 for typecode in valid_typecodes:
170 a = array.array(typecode, values)
174 array.array, typecode, mformat_code, arraystr)
209 return typecodes[(typecodes.index(self.typecode)+1) % len(typecodes)]
212 a = array.array(self.typecode)
213 self.assertEqual(a.typecode, self.typecode)
215 self.assertRaises(TypeError, array.array, self.typecode, None)
218 a = array.array(self.typecode)
222 a = array.array(self.typecode, self.example)
[all …]
Dtest_re.py1394 for typecode in 'bBuhHiIlLfd':
1395 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.c33 char typecode; member
1726 if (self->ob_descr->typecode != 'u') { in array_array_fromunicode_impl()
1764 if (self->ob_descr->typecode != 'u') { in array_array_tounicode_impl()
1826 typecode_to_mformat_code(char typecode) in typecode_to_mformat_code() argument
1833 switch (typecode) { in typecode_to_mformat_code()
1931 make_array(PyTypeObject *arraytype, char typecode, PyObject *items) in make_array() argument
1940 typecode_obj = PyUnicode_FromOrdinal(typecode); in make_array()
1979 int typecode, in array__array_reconstructor_impl() argument
2001 for (descr = descriptors; descr->typecode != '\0'; descr++) { in array__array_reconstructor_impl()
2002 if ((int)descr->typecode == typecode) in array__array_reconstructor_impl()
[all …]
/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.
241 ``array(typecode, initializer)``. The *initializer* is omitted if the array is
242 empty, otherwise it is a string if the *typecode* is ``'u'``, otherwise it is a
Dmultiprocessing.rst1419 ctypes type or a one character typecode of the kind used by the :mod:`array`
1449 it is either a ctypes type or a one character typecode of the kind used by
1491 it is either a ctypes type or a one character typecode of the kind used by
1506 ctypes type or a one character typecode of the kind used by the :mod:`array`
1575 ctypes sharedctypes using type sharedctypes using typecode
1816 .. method:: Array(typecode, sequence)
1820 .. method:: Value(typecode, value)
Dtypes.rst342 as ``FrameType.f_locals`` or ``array.array.typecode``. This type is used as
/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/Modules/clinic/
Darraymodule.c.h500 int typecode,
509 int typecode; in array__array_reconstructor() local
528 typecode = PyUnicode_READ_CHAR(args[1], 0); in array__array_reconstructor()
534 … 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.py48 return array.array, (a.typecode, a.tobytes())
1012 def __init__(self, typecode, value, lock=True): argument
1013 self._typecode = typecode
1023 def Array(typecode, sequence, lock=True): argument
1024 return array.array(typecode, sequence)
/third_party/flatbuffers/python/flatbuffers/
Dflexbuffers.py1350 if elements.typecode == 'f':
1352 elif elements.typecode == 'd':
1354 elif elements.typecode in ('b', 'h', 'i', 'l', 'q'):
1357 elif elements.typecode in ('B', 'H', 'I', 'L', 'Q'):
1361 raise ValueError('unsupported array typecode: %s' % elements.typecode)
/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/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/flatbuffers/tests/
Dpy_flexbuffers_test.py1256 def encode_array(typecode, values): argument
1258 fbb.VectorFromElements(array.array(typecode, values))
/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/
DNEWS382 -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