[Python-checkins] bpo-41933: Clarify wording for s * n in Common Sequence Operations (GH-22570)

JulienPalard webhook-mailer at python.org
Mon Mar 15 18:50:57 EDT 2021


https://github.com/python/cpython/commit/0269ce87c9347542c54a653dd78b9f60bb9fa822
commit: 0269ce87c9347542c54a653dd78b9f60bb9fa822
branch: master
author: Chavdar Yotov <choko43 at gmail.com>
committer: JulienPalard <julien at palard.fr>
date: 2021-03-15T23:50:49+01:00
summary:

bpo-41933: Clarify wording for s * n in Common Sequence Operations (GH-22570)

files:
A Misc/NEWS.d/next/Documentation/2020-10-05-20-04-43.bpo-41933.Pff94-.rst
M Lib/pydoc_data/topics.py

diff --git a/Lib/pydoc_data/topics.py b/Lib/pydoc_data/topics.py
index 0048f79b8cf25..a86d42247c3d0 100644
--- a/Lib/pydoc_data/topics.py
+++ b/Lib/pydoc_data/topics.py
@@ -13956,9 +13956,9 @@
              '| "s + t"                    | the concatenation of *s* and *t* '
              '| (6)(7)     |\n'
              '+----------------------------+----------------------------------+------------+\n'
-             '| "s * n" or "n * s"         | equivalent to adding *s* to      '
+             '| "s * n" or "n * s"         | equivalent to *n* copies of the  '
              '| (2)(7)     |\n'
-             '|                            | itself *n* times                 '
+             '|                            | *s* sequence                     '
              '|            |\n'
              '+----------------------------+----------------------------------+------------+\n'
              '| "s[i]"                     | *i*th item of *s*, origin 0      '
diff --git a/Misc/NEWS.d/next/Documentation/2020-10-05-20-04-43.bpo-41933.Pff94-.rst b/Misc/NEWS.d/next/Documentation/2020-10-05-20-04-43.bpo-41933.Pff94-.rst
new file mode 100644
index 0000000000000..f6316df5d8b15
--- /dev/null
+++ b/Misc/NEWS.d/next/Documentation/2020-10-05-20-04-43.bpo-41933.Pff94-.rst
@@ -0,0 +1 @@
+Clarified wording of s * n in the Common Sequence Operations
\ No newline at end of file



More information about the Python-checkins mailing list