/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 …]
|
D | test_re.py | 896 for typecode in typecodes: 897 a = array.array(typecode)
|
/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/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/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
|
D | types.rst | 234 as ``FrameType.f_locals`` or ``array.array.typecode``. This type is used as
|
D | multiprocessing.rst | 1130 ctypes type or a one character typecode of the kind used by the :mod:`array` 1160 it is either a ctypes type or a one character typecode of the kind used by 1202 it is either a ctypes type or a one character typecode of the kind used by 1217 ctypes type or a one character typecode of the kind used by the :mod:`array` 1283 ctypes sharedctypes using type sharedctypes using typecode 1501 .. method:: Array(typecode, sequence) 1505 .. method:: Value(typecode, value)
|
/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/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/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/cpython2/Lib/ |
D | repr.py | 61 header = "array('%s', [" % x.typecode
|
/external/brotli/enc/ |
D | brotli_bit_stream.c | 752 size_t typecode = NextBlockTypeCode(&code->type_code_calculator, block_type); in StoreBlockSwitch() local 757 BrotliWriteBits(code->type_depths[typecode], code->type_bits[typecode], in StoreBlockSwitch()
|
/external/python/cpython2/Doc/tutorial/ |
D | stdlib2.rst | 296 numbers (typecode ``"H"``) rather than the usual 16 bytes per entry for regular
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | _g_l_y_f.py | 959 return self._a.typecode == 'f'
|
/external/gptfdisk/ |
D | NEWS | 29 -t/--typecode, and -u/--partition-guid commands: If a -n/--new option
|
/external/python/cpython2/Misc/ |
D | NEWS | 10365 - Issue #1872: The struct module typecode for _Bool has been changed
|