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

Grammatical errors in weakref.WeakValueDictionary docs #73660

Closed
Mariatta opened this issue Feb 7, 2017 · 13 comments
Closed

Grammatical errors in weakref.WeakValueDictionary docs #73660

Mariatta opened this issue Feb 7, 2017 · 13 comments
Assignees
Labels
3.7 (EOL) end of life docs Documentation in the Doc dir easy

Comments

@Mariatta
Copy link
Member

Mariatta commented Feb 7, 2017

BPO 29474
Nosy @rhettinger, @vstinner, @zware, @marco-buttu, @Mariatta
PRs
  • bpo-29474: Improve documentation for weakref.WeakValueDictionary #10
  • [backport to 3.6] bpo-29474: Improve documentation for weakref.WeakValueDictionary #22
  • [backport to 3.5] bpo-29474: Improve documentation for weakref.WeakValueDictionary #23
  • bpo-29474: Improve documentation for weakref.WeakValueDictionary #11
  • Files
  • issue29474py3.patch: patch for 3.5+
  • issue29474py2.patch: patch for 2.7
  • issue29474py3-2.patch: remove the second "additional" word
  • 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 = 'https://github.com/Mariatta'
    closed_at = <Date 2017-02-12.16:24:13.628>
    created_at = <Date 2017-02-07.15:59:18.671>
    labels = ['easy', '3.7', 'docs']
    title = 'Grammatical errors in weakref.WeakValueDictionary docs'
    updated_at = <Date 2017-03-25.00:49:38.946>
    user = 'https://github.com/Mariatta'

    bugs.python.org fields:

    activity = <Date 2017-03-25.00:49:38.946>
    actor = 'zach.ware'
    assignee = 'Mariatta'
    closed = True
    closed_date = <Date 2017-02-12.16:24:13.628>
    closer = 'Mariatta'
    components = ['Documentation']
    creation = <Date 2017-02-07.15:59:18.671>
    creator = 'Mariatta'
    dependencies = []
    files = ['46570', '46571', '46597']
    hgrepos = []
    issue_num = 29474
    keywords = ['patch', 'easy']
    message_count = 13.0
    messages = ['287241', '287243', '287245', '287276', '287277', '287301', '287341', '287342', '287641', '290446', '290448', '290449', '290454']
    nosy_count = 6.0
    nosy_names = ['rhettinger', 'vstinner', 'docs@python', 'zach.ware', 'marco.buttu', 'Mariatta']
    pr_nums = ['10', '22', '23', '11']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue29474'
    versions = ['Python 2.7', 'Python 3.5', 'Python 3.6', 'Python 3.7']

    @Mariatta
    Copy link
    Member Author

    Mariatta commented Feb 7, 2017

    https://docs.python.org/3/library/weakref.html?highlight=weakref#weakref.WeakValueDictionary

    There are grammatical errors in the sentence:

    These method have the same issues as the and keyrefs() method of WeakKeyDictionary objects.

    Reported by Arthur Goldberg in https://mail.python.org/pipermail/docs/2017-February/029957.html

    @Mariatta Mariatta added 3.7 (EOL) end of life docs Documentation in the Doc dir easy labels Feb 7, 2017
    @vstinner
    Copy link
    Member

    vstinner commented Feb 7, 2017

    Would you mind to propose a patch? Thanks in advance.

    Note: the sentence is also wrong in Python 2.7 doc, no?

    @Mariatta
    Copy link
    Member Author

    Mariatta commented Feb 7, 2017

    You're right, Victor :)

    The wording in 2.7 is a little bit different, but should be fixed too.

    In 2.7:

    These method have the same issues as the iterkeyrefs() and keyrefs() methods of WeakKeyDictionary objects.

    Assigning this to myself.

    @Mariatta Mariatta assigned Mariatta and unassigned docspython Feb 7, 2017
    @Mariatta
    Copy link
    Member Author

    Mariatta commented Feb 8, 2017

    Attached is the patch to fix the grammatical errors for versions 3.5+

    @Mariatta
    Copy link
    Member Author

    Mariatta commented Feb 8, 2017

    And here is the patch that fixes the issue for python 2.7.

    @marco-buttu
    Copy link
    Mannequin

    marco-buttu mannequin commented Feb 8, 2017

    The second patch LGTM. In the first one there is a typo (see review).

    @Mariatta
    Copy link
    Member Author

    Mariatta commented Feb 8, 2017

    Thanks for reviewing, Marco :)
    Updated the patch.

    @marco-buttu
    Copy link
    Mannequin

    marco-buttu mannequin commented Feb 8, 2017

    Thanks Mariatta, now it is OK to me

    @Mariatta
    Copy link
    Member Author

    Thanks, everyone :)
    The GitHub PRs have been merged.

    Closing this issue.

    @Mariatta
    Copy link
    Member Author

    New changeset 3110a37 by Mariatta in branch 'master':
    bpo-29474: Improve documentation for weakref.WeakValueDictionary (#10)
    3110a37

    @Mariatta
    Copy link
    Member Author

    New changeset 308f789 by Mariatta in branch '3.6':
    bpo-29474: Improve documentation for weakref.WeakValueDictionary (#22)
    308f789

    @Mariatta
    Copy link
    Member Author

    New changeset ae82871 by Mariatta in branch '3.5':
    bpo-29474: Improve documentation for weakref.WeakValueDictionary (#23)
    ae82871

    @zware
    Copy link
    Member

    zware commented Mar 25, 2017

    New changeset 5c32988 by Zachary Ware (Mariatta) in branch '2.7':
    bpo-29474: Improve documentation for weakref.WeakValueDictionary (#11)
    5c32988

    @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
    3.7 (EOL) end of life docs Documentation in the Doc dir easy
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants