diff options
| author | Petri Lehtinen <petri@digip.org> | 2011-10-24 21:24:58 +0300 |
|---|---|---|
| committer | Petri Lehtinen <petri@digip.org> | 2011-10-24 21:24:58 +0300 |
| commit | 64c1c0720170dbd78dbac333d4c268439ac856bc (patch) | |
| tree | a3f599b784762ac06f88726b42861a49eb7a7293 /Modules/arraymodule.c | |
| parent | a94200e6ce17d794c121cbeff7d9b61b206a2429 (diff) | |
| parent | f8859e1808eff603b727d1adbeb38f745c9fedb5 (diff) | |
| download | cpython-git-64c1c0720170dbd78dbac333d4c268439ac856bc.tar.gz | |
merge heads
Diffstat (limited to 'Modules/arraymodule.c')
| -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 fe6106c9a4..31c4f39164 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -1484,7 +1484,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."); @@ -1506,7 +1506,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."); @@ -2557,7 +2557,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\ @@ -2565,7 +2565,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\ |
