You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Grammatical errors in weakref.WeakValueDictionary docs #73660
Activity
Mariatta commentedon 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
vstinner commentedon 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 commentedon 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 commentedon Feb 8, 2017
Attached is the patch to fix the grammatical errors for versions 3.5+
Mariatta commentedon Feb 8, 2017
And here is the patch that fixes the issue for python 2.7.
marco-buttu commentedon Feb 8, 2017
The second patch LGTM. In the first one there is a typo (see review).
Mariatta commentedon Feb 8, 2017
Thanks for reviewing, Marco :)
Updated the patch.
marco-buttu commentedon Feb 8, 2017
Thanks Mariatta, now it is OK to me
Mariatta commentedon Feb 12, 2017
Thanks, everyone :)
The GitHub PRs have been merged.
Closing this issue.
Mariatta commentedon Mar 25, 2017
New changeset 3110a37 by Mariatta in branch 'master':
bpo-29474: Improve documentation for weakref.WeakValueDictionary (#10)
3110a37
Mariatta commentedon Mar 25, 2017
New changeset 308f789 by Mariatta in branch '3.6':
bpo-29474: Improve documentation for weakref.WeakValueDictionary (#22)
308f789
Mariatta commentedon Mar 25, 2017
New changeset ae82871 by Mariatta in branch '3.5':
bpo-29474: Improve documentation for weakref.WeakValueDictionary (#23)
ae82871
zware commentedon Mar 25, 2017
New changeset 5c32988 by Zachary Ware (Mariatta) in branch '2.7':
bpo-29474: Improve documentation for weakref.WeakValueDictionary (#11)
5c32988