8.6. array — Efficient arrays of numeric values — Python 2.7.9 documentation

index modules | next | previous | Python » 2.7.9 Documentation » The Python Standard Library » 8. Data Types » array ¶ This module defines an object type which can compactly represent an array of basic values: characters, integers, floating point numbers. Arrays are sequence types and behave very much like lists, except that the type of objects stored in them is constrained. The type is specified at object creation time by using a type code , which is a single character. The following type codes are defined: Type code C Type Python Type Minimum size in bytes 'c' char character 1 'b' signed char int 1 'B' unsigned char int 1 'u' Py_UNICODE Unicode character 2 (see note) 'h' signed short int 2 'H' unsigned short int 2 'i' signed int int 2 'I' unsigned int long 2 'l' signed long int 4 'L' unsigned long lon...

Linked on 2015-02-02 19:08:49 | Similar Links