diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2011-10-24 11:17:27 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2011-10-24 11:17:27 (GMT) |
commit | 6a985c3549a8febb934e041601bb1dd20352bb53 (patch) | |
tree | ff556570257fea77d796b808cac62f71e484b450 /Modules | |
parent | 39411f60a2d716a6e61f7a9b4c445b3d8492b9ef (diff) | |
parent | c45fb25fba9ef8a1d322099db86be98775d37bec (diff) | |
download | cpython-6a985c3549a8febb934e041601bb1dd20352bb53.zip cpython-6a985c3549a8febb934e041601bb1dd20352bb53.tar.gz cpython-6a985c3549a8febb934e041601bb1dd20352bb53.tar.bz2 |
Merge 3.2.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/arraymodule.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index b2d368d..09cca60 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -1550,7 +1550,7 @@ PyDoc_STRVAR(fromunicode_doc, \n\ Extends this array with data from the unicode string ustr.\n\ The array must be a unicode type array; otherwise a ValueError\n\ -is raised. Use array.frombytes(ustr.decode(...)) to\n\ +is raised. Use array.frombytes(ustr.encode(...)) to\n\ append Unicode data to an array of some other type."); @@ -1572,7 +1572,7 @@ PyDoc_STRVAR(tounicode_doc, \n\ Convert the array to a unicode string. The array must be\n\ a unicode type array; otherwise a ValueError is raised. Use\n\ -array.tostring().decode() to obtain a unicode string from\n\ +array.tobytes().decode() to obtain a unicode string from\n\ an array of some other type."); @@ -2636,7 +2636,7 @@ count() -- return number of occurrences of an object\n\ extend() -- extend array by appending multiple elements from an iterable\n\ fromfile() -- read items from a file object\n\ fromlist() -- append items from the list\n\ -fromstring() -- append items from the string\n\ +frombytes() -- append items from the string\n\ index() -- return index of first occurrence of an object\n\ insert() -- insert a new item into the array at a provided position\n\ pop() -- remove and return item (default last)\n\ @@ -2644,7 +2644,7 @@ remove() -- remove first occurrence of an object\n\ reverse() -- reverse the order of the items in the array\n\ tofile() -- write all items to a file object\n\ tolist() -- return the array converted to an ordinary list\n\ -tostring() -- return the array converted to a string\n\ +tobytes() -- return the array converted to a string\n\ \n\ Attributes:\n\ \n\ |