Home
last modified time | relevance | path

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

12

/external/python/cpython2/Lib/test/
Dtest_array.py17 def __init__(self, typecode, newarg=None): argument
18 array.array.__init__(self, typecode)
69 return typecodes[(typecodes.index(self.typecode)+1) % len(typecodes)]
72 a = array.array(self.typecode)
73 self.assertEqual(a.typecode, self.typecode)
75 self.assertRaises(TypeError, array.array, self.typecode, None)
78 a = array.array(self.typecode)
82 a = array.array(self.typecode, self.example)
86 a = array.array(self.typecode, self.example)
96 a = array.array(self.typecode, self.example)
[all …]
/external/python/cpython3/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 …]
/external/python/cpython3/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 …]
/external/python/cpython2/Lib/multiprocessing/dummy/
D__init__.py128 def Array(typecode, sequence, lock=True): argument
129 return array.array(typecode, sequence)
132 def __init__(self, typecode, value, lock=True): argument
133 self._typecode = typecode
/external/python/cpython3/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
/external/python/cpython2/Modules/
Darraymodule.c25 int typecode; member
1472 if (self->ob_descr->typecode != 'u') { in array_fromunicode()
1511 if (self->ob_descr->typecode != 'u') { in array_tounicode()
1554 "O(cO)O", Py_TYPE(array), array->ob_descr->typecode, list, dict); in array_reduce()
1578 char tc = a->ob_descr->typecode; in array_get_typecode()
1657 char buf[256], typecode; in array_repr() local
1662 typecode = a->ob_descr->typecode; in array_repr()
1664 PyOS_snprintf(buf, sizeof(buf), "array('%c')", typecode); in array_repr()
1668 if (typecode == 'c') in array_repr()
1671 else if (typecode == 'u') in array_repr()
[all …]
/external/python/cpython3/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
/external/python/cpython3/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()
/external/python/cpython2/Doc/library/
Darray.rst48 The ``'u'`` typecode corresponds to Python's unicode character. On narrow
61 .. class:: array(typecode[, initializer])
63 A new array whose items are restricted by *typecode*, and initialized
88 .. attribute:: array.typecode
90 The typecode character used to create the array.
248 ``array(typecode, initializer)``. The *initializer* is omitted if the array is
249 empty, otherwise it is a string if the *typecode* is ``'c'``, otherwise it is a
/external/python/cpython2/Lib/ctypes/
D__init__.py144 def _check_size(typ, typecode=None): argument
148 if typecode is None:
150 typecode = typ._type_
151 actual, required = sizeof(typ), calcsize(typecode)
/external/python/cpython3/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)
/external/python/cpython3/Lib/
Dreprlib.py85 return "array('%s')" % x.typecode
86 header = "array('%s', [" % x.typecode
/external/tcpdump/tests/
Dbgp-as-path-oobr-nossl.out12 unknown extd community typecode (0x2500), Flags [none]
17552 unknown extd community typecode (0x0249), Flags [none]
17554 unknown extd community typecode (0x0a04), Flags [none]
17556 unknown extd community typecode (0x24ac), Flags [none]
17558 unknown extd community typecode (0x2100), Flags [none]
17560 unknown extd community typecode (0x0000), Flags [none]
17562 unknown extd community typecode (0x0500), Flags [none]
17564 unknown extd community typecode (0x498a), Flags [non-transitive]
17566 unknown extd community typecode (0x1ec0), Flags [none]
17568 unknown extd community typecode (0xffff), Flags [vendor-specific, non-transitive]
[all …]
Dbgp-as-path-oobr-ssl.out12 unknown extd community typecode (0x2500), Flags [none]
17552 unknown extd community typecode (0x0249), Flags [none]
17554 unknown extd community typecode (0x0a04), Flags [none]
17556 unknown extd community typecode (0x24ac), Flags [none]
17558 unknown extd community typecode (0x2100), Flags [none]
17560 unknown extd community typecode (0x0000), Flags [none]
17562 unknown extd community typecode (0x0500), Flags [none]
17564 unknown extd community typecode (0x498a), Flags [non-transitive]
17566 unknown extd community typecode (0x1ec0), Flags [none]
17568 unknown extd community typecode (0xffff), Flags [vendor-specific, non-transitive]
[all …]
Dtok2str-oobr-1.out12 unknown extd community typecode (0x010a), Flags [none]
/external/python/cpython2/Lib/plat-mac/
Daepack.py362 def mktype(typecode, modulename=None): argument
366 classtype = codenamemapper.get(typecode, None)
369 return aetypes.mktype(typecode)
/external/fonttools/Lib/fontTools/ttLib/tables/
DG__l_o_c.py41 flags=(bool(self.attribIds) << 1) + (self.locations.typecode == 'I'),
DotBase.py137 def readValue(self, typecode, staticSize): argument
147 def readArray(self, typecode, staticSize, count): argument
150 value = array.array(typecode, self.data[pos:newpos])
420 def writeValue(self, typecode, value): argument
D_g_l_y_f.py1435 def __init__(self, iterable=[], typecode="h"): argument
1436 self._a = array.array(typecode)
1444 return self._a.typecode == 'd'
1469 c = GlyphCoordinates(typecode=self._a.typecode)
DotConverters.py305 typecode = "H" variable in GlyphID
308 gids = reader.readArray(self.typecode, self.staticSize, count)
316 return font.getGlyphName(reader.readValue(self.typecode, self.staticSize))
318 writer.writeValue(self.typecode, font.getGlyphID(value))
323 typecode = "L" variable in GlyphID32
/external/python/cpython2/Lib/multiprocessing/
Dmanagers.py65 return array.array, (a.typecode, a.tostring())
949 def __init__(self, typecode, value, lock=True): argument
950 self._typecode = typecode
960 def Array(typecode, sequence, lock=True): argument
961 return array.array(typecode, sequence)
/external/python/cpython3/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)
/external/python/cpython2/Lib/
Drepr.py61 header = "array('%s', [" % x.typecode
/external/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/
Dsignal_processing.py162 if samples.typecode != 'h':
/external/fonttools/Tests/ttLib/tables/
D_g_l_y_f_test.py176 g = GlyphCoordinates([(1, 1)], typecode="h")
178 assert g.array.typecode == "d"

12