array.array.tounicode()

array.tounicode() Convert the array to a unicode string. The array must be a type 'u' array; otherwise a ValueError is raised. Use array.tobytes().decode(enc) to obtain a unicode string from an array of some other type.

array.array.typecode

array.typecode The typecode character used to create the array.

array.array.pop()

array.pop([i]) Removes the item with the index i from the array and returns it. The optional argument defaults to -1, so that by default the last item is removed and returned.

array.array.tolist()

array.tolist() Convert the array to an ordinary list with the same items.

array.array.tostring()

array.tostring() Deprecated alias for tobytes().

array.array.reverse()

array.reverse() Reverse the order of the items in the array.

array.array.tofile()

array.tofile(f) Write all items (as machine values) to the file object f.

array.array.tobytes()

array.tobytes() Convert the array to an array of machine values and return the bytes representation (the same sequence of bytes that would be written to a file by the tofile() method.) New in version 3.2: tostring() is renamed to tobytes() for clarity.

array.array.remove()

array.remove(x) Remove the first occurrence of x from the array.

array.array.fromunicode()

array.fromunicode(s) Extends this array with data from the given unicode string. The array must be a type 'u' array; otherwise a ValueError is raised. Use array.frombytes(unicodestring.encode(enc)) to append Unicode data to an array of some other type.