Home
last modified time | relevance | path

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

/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 …]
Dtest_re.py896 for typecode in typecodes:
897 a = array.array(typecode)
/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/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/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
Dtypes.rst234 as ``FrameType.f_locals`` or ``array.array.typecode``. This type is used as
Dmultiprocessing.rst1130 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__.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/cpython2/Lib/plat-mac/
Daepack.py362 def mktype(typecode, modulename=None): argument
366 classtype = codenamemapper.get(typecode, None)
369 return aetypes.mktype(typecode)
/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/cpython2/Lib/
Drepr.py61 header = "array('%s', [" % x.typecode
/external/brotli/enc/
Dbrotli_bit_stream.c752 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/
Dstdlib2.rst296 numbers (typecode ``"H"``) rather than the usual 16 bytes per entry for regular
/external/fonttools/Lib/fontTools/ttLib/tables/
D_g_l_y_f.py959 return self._a.typecode == 'f'
/external/gptfdisk/
DNEWS29 -t/--typecode, and -u/--partition-guid commands: If a -n/--new option
/external/python/cpython2/Misc/
DNEWS10365 - Issue #1872: The struct module typecode for _Bool has been changed