[New-bugs-announce] [issue41933] Wording of s * n in Common Sequence Operations is not optimal

Julien Palard report at bugs.python.org
Sun Oct 4 12:20:21 EDT 2020


New submission from Julien Palard <julien+python at 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 at python
components: Documentation
keywords: easy
messages: 377958
nosy: docs at python, mdk
priority: normal
severity: normal
status: open
title: Wording of s * n in Common Sequence Operations is not optimal

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41933>
_______________________________________


More information about the New-bugs-announce mailing list