@@ -1550,7 +1550,7 @@ PyDoc_STRVAR(fromunicode_doc,
15501550\n\
15511551Extends this array with data from the unicode string ustr.\n\
15521552The array must be a unicode type array; otherwise a ValueError\n\
1553- is raised. Use array.frombytes(ustr.decode (...)) to\n\
1553+ is raised. Use array.frombytes(ustr.encode (...)) to\n\
15541554append Unicode data to an array of some other type." );
15551555
15561556
@@ -1572,7 +1572,7 @@ PyDoc_STRVAR(tounicode_doc,
15721572\n\
15731573Convert the array to a unicode string. The array must be\n\
15741574a unicode type array; otherwise a ValueError is raised. Use\n\
1575- array.tostring ().decode() to obtain a unicode string from\n\
1575+ array.tobytes ().decode() to obtain a unicode string from\n\
15761576an array of some other type." );
15771577
15781578
@@ -2636,15 +2636,15 @@ count() -- return number of occurrences of an object\n\
26362636extend() -- extend array by appending multiple elements from an iterable\n\
26372637fromfile() -- read items from a file object\n\
26382638fromlist() -- append items from the list\n\
2639- fromstring () -- append items from the string\n\
2639+ frombytes () -- append items from the string\n\
26402640index() -- return index of first occurrence of an object\n\
26412641insert() -- insert a new item into the array at a provided position\n\
26422642pop() -- remove and return item (default last)\n\
26432643remove() -- remove first occurrence of an object\n\
26442644reverse() -- reverse the order of the items in the array\n\
26452645tofile() -- write all items to a file object\n\
26462646tolist() -- return the array converted to an ordinary list\n\
2647- tostring () -- return the array converted to a string\n\
2647+ tobytes () -- return the array converted to a string\n\
26482648\n\
26492649Attributes:\n\
26502650\n\
0 commit comments