|
|
|
__contains__(x,
y)
y in x |
|
|
|
__copy__(array)
Return a copy of the array. |
|
|
|
__deepcopy__(array)
Return a copy of the array. |
|
|
|
__delitem__(x,
y)
del x[y] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
a new object with type S, a subtype of T
|
|
|
__reduce__(...)
Return state information for pickling. |
|
|
|
|
|
|
|
__setitem__(x,
i,
y)
x[i]=y |
|
|
|
|
|
append(x)
Append new value x to the end of the array. |
|
|
(address, length)
|
buffer_info()
Return a tuple (address, length) giving the current memory address
and the length in items of the buffer used to hold array's contents
The length should be multiplied by the itemsize attribute to
calculate the buffer length in bytes. |
|
|
|
byteswap()
Byteswap all items of the array. |
|
|
|
count(x)
Return number of occurences of x in the array. |
|
|
|
extend(...)
extend(array or iterable) |
|
|
|
fromfile(f,
n)
Read n objects from the file object f and append them to the end of
the array. |
|
|
|
fromlist(list)
Append items to array from list. |
|
|
|
fromstring(string)
Appends items from the string, interpreting it as an array of machine
values,as if it had been read from a file using the fromfile()
method). |
|
|
|
fromunicode(ustr)
Extends this array with data from the unicode string ustr. |
|
|
|
index(x)
Return index of first occurence of x in the array. |
|
|
|
insert(i,
x)
Insert a new item x into the array before position i. |
|
|
|
pop(i=...)
Return the i-th element and delete it from the array. |
|
|
|
read(f,
n)
Read n objects from the file object f and append them to the end of
the array. |
|
|
|
remove(x)
Remove the first occurence of x in the array. |
|
|
|
reverse()
Reverse the order of the items in the array. |
|
|
|
tofile(f)
Write all items (as machine values) to the file object f. |
|
|
list
|
tolist()
Convert array to an ordinary list with the same items. |
|
|
string
|
tostring()
Convert the array to an array of machine values and return the string
representation. |
|
|
unicode
|
tounicode()
Convert the array to a unicode string. |
|
|
|
write(f)
Write all items (as machine values) to the file object f. |
|
|
Inherited from object :
__delattr__ ,
__hash__ ,
__init__ ,
__reduce_ex__ ,
__setattr__ ,
__str__
|