/external/python/cpython2/Lib/test/ |
D | test_array.py | 17 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/ |
D | test_array.py | 24 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/ |
D | arraymodule.c | 30 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__.py | 128 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__.py | 97 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/ |
D | arraymodule.c | 25 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/ |
D | array.rst | 68 .. 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/ |
D | arraymodule.c.h | 457 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/ |
D | array.rst | 48 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__.py | 144 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__.py | 142 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/ |
D | reprlib.py | 85 return "array('%s')" % x.typecode 86 header = "array('%s', [" % x.typecode
|
/external/tcpdump/tests/ |
D | bgp-as-path-oobr-nossl.out | 12 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 …]
|
D | bgp-as-path-oobr-ssl.out | 12 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 …]
|
D | tok2str-oobr-1.out | 12 unknown extd community typecode (0x010a), Flags [none]
|
/external/python/cpython2/Lib/plat-mac/ |
D | aepack.py | 362 def mktype(typecode, modulename=None): argument 366 classtype = codenamemapper.get(typecode, None) 369 return aetypes.mktype(typecode)
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | G__l_o_c.py | 41 flags=(bool(self.attribIds) << 1) + (self.locations.typecode == 'I'),
|
D | otBase.py | 137 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.py | 1435 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)
|
D | otConverters.py | 305 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/ |
D | managers.py | 65 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/ |
D | managers.py | 47 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/ |
D | repr.py | 61 header = "array('%s', [" % x.typecode
|
/external/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/ |
D | signal_processing.py | 162 if samples.typecode != 'h':
|
/external/fonttools/Tests/ttLib/tables/ |
D | _g_l_y_f_test.py | 176 g = GlyphCoordinates([(1, 1)], typecode="h") 178 assert g.array.typecode == "d"
|