[issue41933] Wording of s * n in Common Sequence Operations is not optimal

New submission from Julien Palard <julien+python@palard.fr>: As reported by Graham Ewart on docs@, in https://docs.python.org/3/library/stdtypes.html#common-sequence-operations: s * n or n * s | equivalent to adding s to itself n times is badly worded. In fact it's more like n-1 times, but yet it's not adding s to itself. I'd go for "n times the s sequence" or "n copies of the s sequence" instead, which both avoid the "n-1" and the "to itself" parts. ---------- assignee: docs@python components: Documentation keywords: easy messages: 377958 nosy: docs@python, mdk priority: normal severity: normal status: open title: Wording of s * n in Common Sequence Operations is not optimal _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue41933> _______________________________________

Chavdar Yotov <choko43@gmail.com> added the comment: Looks like a fitting first contribution. Working on a PR now :-) ---------- nosy: +chavdar _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue41933> _______________________________________

Change by Chavdar Yotov <choko43@gmail.com>: ---------- keywords: +patch pull_requests: +21566 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22570 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue41933> _______________________________________

Julien Palard <julien+python@palard.fr> added the comment: New changeset 0269ce87c9347542c54a653dd78b9f60bb9fa822 by Chavdar Yotov in branch 'master': bpo-41933: Clarify wording for s * n in Common Sequence Operations (GH-22570) https://github.com/python/cpython/commit/0269ce87c9347542c54a653dd78b9f60bb9... ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue41933> _______________________________________

Change by Julien Palard <julien+python@palard.fr>: ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue41933> _______________________________________
participants (2)
-
Chavdar Yotov
-
Julien Palard