As we discussed at the beginning of the last chapter, there are very few array methods for good reasons, and these all depend on the the implementation details. They're worth knowing, though:
The itemsize() method applied to an array returns the number of bytes used by any one of its elements.
Calling an array's iscontiguous() method returns true if the memory used by A is contiguous. A non-contiguous array can be converted to a contiguous one by the copy() method. This is useful for interfacing to C routines only, as far as I know.
The `typecode()' method returns the typecode of the array it is applied to. While we've been talking about them as Float, Int, etc., they are represented internally as characters, so this is what you'll get:
The byteswapped method performs a byte swapping operation on all the elements in the array.
The tostring method returns a string representation of the data portion of the array it is applied to.