| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -58,6 +58,8 @@ Core and Builtins | |||
| 58 | 58 | Library | |
| 59 | 59 | ------- | |
| 60 | 60 | ||
| 61 | + - Issue #13255: wrong docstrings in array module. | ||
| 62 | + | ||
| 61 | 63 | - Issue #9168: now smtpd is able to bind privileged port. | |
| 62 | 64 | ||
| 63 | 65 | - Issue #12529: fix cgi.parse_header issue on strings with double-quotes and | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1484,7 +1484,7 @@ PyDoc_STRVAR(fromunicode_doc, | |||
| 1484 | 1484 | \n\ | |
| 1485 | 1485 | Extends this array with data from the unicode string ustr.\n\ | |
| 1486 | 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 | 1488 | append Unicode data to an array of some other type."); | |
| 1489 | 1489 | ||
| 1490 | 1490 | ||
@@ -1506,7 +1506,7 @@ PyDoc_STRVAR(tounicode_doc, | |||
| 1506 | 1506 | \n\ | |
| 1507 | 1507 | Convert the array to a unicode string. The array must be\n\ | |
| 1508 | 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 | 1510 | an array of some other type."); | |
| 1511 | 1511 | ||
| 1512 | 1512 | ||
@@ -2557,15 +2557,15 @@ count() -- return number of occurrences of an object\n\ | |||
| 2557 | 2557 | extend() -- extend array by appending multiple elements from an iterable\n\ | |
| 2558 | 2558 | fromfile() -- read items from a file object\n\ | |
| 2559 | 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 | 2561 | index() -- return index of first occurrence of an object\n\ | |
| 2562 | 2562 | insert() -- insert a new item into the array at a provided position\n\ | |
| 2563 | 2563 | pop() -- remove and return item (default last)\n\ | |
| 2564 | 2564 | remove() -- remove first occurrence of an object\n\ | |
| 2565 | 2565 | reverse() -- reverse the order of the items in the array\n\ | |
| 2566 | 2566 | tofile() -- write all items to a file object\n\ | |
| 2567 | 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 | 2569 | \n\ | |
| 2570 | 2570 | Attributes:\n\ | |
| 2571 | 2571 | \n\ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments