Commit 9139f234 authored by Mariatta's avatar Mariatta Committed by GitHub

bpo-22702: Clarify documentation of str.join & bytes.join (GH-156) (GH-1898)

The "iterable iterable" phrasing created confusion between the term
reference and the parameter name.

This simplifies the phrasing to just use the parameter name
without linking directly to the term definition..
(cherry picked from commit 08e2f355)
parent 32e220f1
......@@ -1068,9 +1068,10 @@ string functions based on regular expressions.
.. method:: str.join(iterable)
Return a string which is the concatenation of the strings in the
:term:`iterable` *iterable*. The separator between elements is the string
providing this method.
Return a string which is the concatenation of the strings in *iterable*.
A :exc:`TypeError` will be raised if there are any non-string values in
*iterable*, including :class:`bytes` objects. The separator between
elements is the string providing this method.
.. method:: str.ljust(width[, fillchar])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment