Search notes:

Python standard library: array

An array is similar to a list with the difference that an array contains elements that each share the same type.

Specifying the array's elements' type

The type of the elements that an array holds is specified at creation time with one of the following type codes (one character):
C-type Python type
b signed char int
B unsigned char int
u wchar_t Unicode character
h signed short int
H unsigned short int
i signed int int
I unsigned int int
l signed long int
L unsigned long int
q signed long long int
Q unsigned long long int
f float float
d double float

See also

standard library

Index