Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit08e2f35

Browse files
CuriousLearnerncoghlan
authored andcommitted
bpo-22702: Clarify documentation of str.join & bytes.join (GH-156)
The "iterable iterable" phrasing created confusion between the termreference and the parameter name.This simplifies the phrasing to just use the parameter namewithout linking directly to the term definition.
1 parent2b44e30 commit08e2f35

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

‎Doc/library/stdtypes.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1719,10 +1719,10 @@ expression support in the :mod:`re` module).
17191719

17201720
..method::str.join(iterable)
17211721

1722-
Return a string which is the concatenation of the strings inthe
1723-
:term:`iterable` *iterable*.A:exc:`TypeError` will be raised if there are
1724-
any non-string values in*iterable*, including:class:`bytes` objects. The
1725-
separator betweenelements is the string providing this method.
1722+
Return a string which is the concatenation of the strings in*iterable*.
1723+
A:exc:`TypeError` will be raised if there are any non-string values in
1724+
*iterable*, including:class:`bytes` objects. The separator between
1725+
elements is the string providing this method.
17261726

17271727

17281728
..method::str.ljust(width[, fillchar])
@@ -2554,11 +2554,11 @@ arbitrary binary data.
25542554
bytearray.join(iterable)
25552555

25562556
Return a bytes or bytearray object which is the concatenation of the
2557-
binary data sequences inthe:term:`iterable` *iterable*. A
2558-
:exc:`TypeError` will be raisedif there are any values in *iterable*
2559-
that are not:term:`bytes-likeobjects <bytes-like object>`, including
2560-
:class:`str` objects. Theseparator between elements is the contents
2561-
of the bytes orbytearray object providing this method.
2557+
binary data sequences in*iterable*. A:exc:`TypeError` will be raised
2558+
if there are any values in *iterable* that are not:term:`bytes-like
2559+
objects <bytes-like object>`, including:class:`str` objects. The
2560+
separator between elements is the contents of the bytes or
2561+
bytearray object providing this method.
25622562

25632563

25642564
..staticmethod::bytes.maketrans(from, to)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp