]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41933: Clarify wording for s * n in Common Sequence Operations (GH-22570)
authorChavdar Yotov <choko43@gmail.com>
Mon, 15 Mar 2021 22:50:49 +0000 (22:50 +0000)
committerGitHub <noreply@github.com>
Mon, 15 Mar 2021 22:50:49 +0000 (23:50 +0100)
Lib/pydoc_data/topics.py
Misc/NEWS.d/next/Documentation/2020-10-05-20-04-43.bpo-41933.Pff94-.rst [new file with mode: 0644]

index 0048f79b8cf256e5feee7611ee2c36faa45fb114..a86d42247c3d091176c140daccf158929a373835 100644 (file)
@@ -13956,9 +13956,9 @@ topics = {'assert': 'The "assert" statement\n'
              '| "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 (file)
index 0000000..f6316df
--- /dev/null
@@ -0,0 +1 @@
+Clarified wording of s * n in the Common Sequence Operations
\ No newline at end of file