Skip to content

Commit 6a985c3

Browse files
committed
Merge 3.2.
2 parents 39411f6 + c45fb25 commit 6a985c3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@ Core and Builtins
338338
Library
339339
-------
340340

341+
- Issue #13255: wrong docstrings in array module.
342+
341343
- Issue #8540: Remove deprecated Context._clamp attribute in Decimal module.
342344

343345
- Issue #13235: Added PendingDeprecationWarning to warn() method and function.

Modules/arraymodule.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1550,7 +1550,7 @@ PyDoc_STRVAR(fromunicode_doc,
15501550
\n\
15511551
Extends this array with data from the unicode string ustr.\n\
15521552
The 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\
15541554
append Unicode data to an array of some other type.");
15551555

15561556

@@ -1572,7 +1572,7 @@ PyDoc_STRVAR(tounicode_doc,
15721572
\n\
15731573
Convert the array to a unicode string. The array must be\n\
15741574
a 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\
15761576
an array of some other type.");
15771577

15781578

@@ -2636,15 +2636,15 @@ count() -- return number of occurrences of an object\n\
26362636
extend() -- extend array by appending multiple elements from an iterable\n\
26372637
fromfile() -- read items from a file object\n\
26382638
fromlist() -- append items from the list\n\
2639-
fromstring() -- append items from the string\n\
2639+
frombytes() -- append items from the string\n\
26402640
index() -- return index of first occurrence of an object\n\
26412641
insert() -- insert a new item into the array at a provided position\n\
26422642
pop() -- remove and return item (default last)\n\
26432643
remove() -- remove first occurrence of an object\n\
26442644
reverse() -- reverse the order of the items in the array\n\
26452645
tofile() -- write all items to a file object\n\
26462646
tolist() -- 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\
26492649
Attributes:\n\
26502650
\n\

0 commit comments

Comments
 (0)