Mercurial > cpython-lru_cache-weakref
comparison Modules/arraymodule.c @ 73092:451fa5782145 3.2
Issue #13255: wrong docstrings in array module.
| author | Florent Xicluna <florent.xicluna@gmail.com> |
|---|---|
| date | Mon, 24 Oct 2011 13:14:55 +0200 |
| parents | 3c9232a684ae |
| children | 1e2880250610 b82e68cf3b0d |
comparison
equal
deleted
inserted
replaced
| 73079:d34beaaf7060 | 73092:451fa5782145 |
|---|---|
| 1482 PyDoc_STRVAR(fromunicode_doc, | 1482 PyDoc_STRVAR(fromunicode_doc, |
| 1483 "fromunicode(ustr)\n\ | 1483 "fromunicode(ustr)\n\ |
| 1484 \n\ | 1484 \n\ |
| 1485 Extends this array with data from the unicode string ustr.\n\ | 1485 Extends this array with data from the unicode string ustr.\n\ |
| 1486 The array must be a unicode type array; otherwise a ValueError\n\ | 1486 The 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\ |
| 1488 append Unicode data to an array of some other type."); | 1488 append Unicode data to an array of some other type."); |
| 1489 | 1489 |
| 1490 | 1490 |
| 1491 static PyObject * | 1491 static PyObject * |
| 1492 array_tounicode(arrayobject *self, PyObject *unused) | 1492 array_tounicode(arrayobject *self, PyObject *unused) |
| 1504 PyDoc_STRVAR(tounicode_doc, | 1504 PyDoc_STRVAR(tounicode_doc, |
| 1505 "tounicode() -> unicode\n\ | 1505 "tounicode() -> unicode\n\ |
| 1506 \n\ | 1506 \n\ |
| 1507 Convert the array to a unicode string. The array must be\n\ | 1507 Convert the array to a unicode string. The array must be\n\ |
| 1508 a unicode type array; otherwise a ValueError is raised. Use\n\ | 1508 a 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\ |
| 1510 an array of some other type."); | 1510 an array of some other type."); |
| 1511 | 1511 |
| 1512 | 1512 |
| 1513 | 1513 |
| 1514 /*********************** Pickling support ************************/ | 1514 /*********************** Pickling support ************************/ |
| 2555 byteswap() -- byteswap all the items of the array\n\ | 2555 byteswap() -- byteswap all the items of the array\n\ |
| 2556 count() -- return number of occurrences of an object\n\ | 2556 count() -- return number of occurrences of an object\n\ |
| 2557 extend() -- extend array by appending multiple elements from an iterable\n\ | 2557 extend() -- extend array by appending multiple elements from an iterable\n\ |
| 2558 fromfile() -- read items from a file object\n\ | 2558 fromfile() -- read items from a file object\n\ |
| 2559 fromlist() -- append items from the list\n\ | 2559 fromlist() -- append items from the list\n\ |
| 2560 fromstring() -- append items from the string\n\ | 2560 frombytes() -- append items from the string\n\ |
| 2561 index() -- return index of first occurrence of an object\n\ | 2561 index() -- return index of first occurrence of an object\n\ |
| 2562 insert() -- insert a new item into the array at a provided position\n\ | 2562 insert() -- insert a new item into the array at a provided position\n\ |
| 2563 pop() -- remove and return item (default last)\n\ | 2563 pop() -- remove and return item (default last)\n\ |
| 2564 remove() -- remove first occurrence of an object\n\ | 2564 remove() -- remove first occurrence of an object\n\ |
| 2565 reverse() -- reverse the order of the items in the array\n\ | 2565 reverse() -- reverse the order of the items in the array\n\ |
| 2566 tofile() -- write all items to a file object\n\ | 2566 tofile() -- write all items to a file object\n\ |
| 2567 tolist() -- return the array converted to an ordinary list\n\ | 2567 tolist() -- 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\ |
| 2569 \n\ | 2569 \n\ |
| 2570 Attributes:\n\ | 2570 Attributes:\n\ |
| 2571 \n\ | 2571 \n\ |
| 2572 typecode -- the typecode character used to create the array\n\ | 2572 typecode -- the typecode character used to create the array\n\ |
| 2573 itemsize -- the length in bytes of one array item\n\ | 2573 itemsize -- the length in bytes of one array item\n\ |
