Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wording of s * n in Common Sequence Operations is not optimal #86099

Closed
JulienPalard opened this issue Oct 4, 2020 · 3 comments
Closed

Wording of s * n in Common Sequence Operations is not optimal #86099

JulienPalard opened this issue Oct 4, 2020 · 3 comments
Labels
docs Documentation in the Doc dir easy

Comments

@JulienPalard
Copy link
Member

BPO 41933
Nosy @JulienPalard, @Sipty
PRs
  • bpo-41933: Clarify wording for s * n in Common Sequence Operations #22570
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2021-03-15.22:51:22.063>
    created_at = <Date 2020-10-04.16:20:21.146>
    labels = ['easy', 'docs']
    title = 'Wording of s * n in Common Sequence Operations is not optimal'
    updated_at = <Date 2021-03-15.22:51:22.063>
    user = 'https://github.com/JulienPalard'

    bugs.python.org fields:

    activity = <Date 2021-03-15.22:51:22.063>
    actor = 'mdk'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2021-03-15.22:51:22.063>
    closer = 'mdk'
    components = ['Documentation']
    creation = <Date 2020-10-04.16:20:21.146>
    creator = 'mdk'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41933
    keywords = ['patch', 'easy']
    message_count = 3.0
    messages = ['377958', '378069', '388786']
    nosy_count = 3.0
    nosy_names = ['docs@python', 'mdk', 'chavdar']
    pr_nums = ['22570']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue41933'
    versions = []

    @JulienPalard
    Copy link
    Member Author

    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.

    @JulienPalard JulienPalard added docs Documentation in the Doc dir easy labels Oct 4, 2020
    @Sipty
    Copy link
    Mannequin

    Sipty mannequin commented Oct 5, 2020

    Looks like a fitting first contribution. Working on a PR now :-)

    @JulienPalard
    Copy link
    Member Author

    New changeset 0269ce8 by Chavdar Yotov in branch 'master':
    bpo-41933: Clarify wording for s * n in Common Sequence Operations (GH-22570)
    0269ce8

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    docs Documentation in the Doc dir easy
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant