@@ -1484,7 +1484,7 @@ PyDoc_STRVAR(fromunicode_doc,
14841484\n\
14851485Extends this array with data from the unicode string ustr.\n\
14861486The array must be a unicode type array; otherwise a ValueError\n\
1487- is raised. Use array.frombytes(ustr.decode (...)) to\n\
1487+ is raised. Use array.frombytes(ustr.encode (...)) to\n\
14881488append Unicode data to an array of some other type." );
14891489
14901490
@@ -1506,7 +1506,7 @@ PyDoc_STRVAR(tounicode_doc,
15061506\n\
15071507Convert the array to a unicode string. The array must be\n\
15081508a unicode type array; otherwise a ValueError is raised. Use\n\
1509- array.tostring ().decode() to obtain a unicode string from\n\
1509+ array.tobytes ().decode() to obtain a unicode string from\n\
15101510an array of some other type." );
15111511
15121512
@@ -2557,15 +2557,15 @@ count() -- return number of occurrences of an object\n\
25572557extend() -- extend array by appending multiple elements from an iterable\n\
25582558fromfile() -- read items from a file object\n\
25592559fromlist() -- append items from the list\n\
2560- fromstring () -- append items from the string\n\
2560+ frombytes () -- append items from the string\n\
25612561index() -- return index of first occurrence of an object\n\
25622562insert() -- insert a new item into the array at a provided position\n\
25632563pop() -- remove and return item (default last)\n\
25642564remove() -- remove first occurrence of an object\n\
25652565reverse() -- reverse the order of the items in the array\n\
25662566tofile() -- write all items to a file object\n\
25672567tolist() -- return the array converted to an ordinary list\n\
2568- tostring () -- return the array converted to a string\n\
2568+ tobytes () -- return the array converted to a string\n\
25692569\n\
25702570Attributes:\n\
25712571\n\
0 commit comments