Methods


appendAppend a new item to the end of the array.
array 
buffer_infoReturn a tuple (address, length) giving the current memory info.
byteswapSwap the bytes of all items (endian conversion for multi-byte types).
clearRemove all items from the array (empty it).
countReturn the number of occurrences of x.
extendAppend items from an iterable or another array.
frombyteAppend items from a bytes object, interpreted using the array's type.
fromfileRead n items (as machine values) from a file object.
fromlistAppend items from a list after type checking.
indexReturn the index of the first occurrence of x.
insertInsert a new item x into the array at position i.
itemsizeSize in bytes of one array item.
popRemove and return the item at index i (last item by default).
removeRemove the first occurrence of x.
reverseReverse the order of the items in place.
tobytesConvert the array to a bytes object containing the raw machine values.
tofileWrite all items (as machine values) to a file object.
tolistConvert the array to a list of Python values.
tounicodeConvert the array with type code 'u' to a unicode string.
typecode 
typecodes 
append
Append a new item to the end of the array.
array
buffer_info
Return a tuple (address, length) giving the current memory info.
byteswap
Swap the bytes of all items (endian conversion for multi-byte types).
clear
Remove all items from the array (empty it).
count
Return the number of occurrences of x.
extend
Append items from an iterable or another array.
frombyte
Append items from a bytes object, interpreted using the array's type.
fromfile
Read n items (as machine values) from a file object.
fromlist
Append items from a list after type checking.
index
Return the index of the first occurrence of x.
insert
Insert a new item x into the array at position i.
itemsize
Size in bytes of one array item.
pop
Remove and return the item at index i (last item by default).
remove
Remove the first occurrence of x.
reverse
Reverse the order of the items in place.
tobytes
Convert the array to a bytes object containing the raw machine values.
tofile
Write all items (as machine values) to a file object.
tolist
Convert the array to a list of Python values.
tounicode
Convert the array with type code 'u' to a unicode string.
typecode
typecodes

© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopPrev