-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
docs: correct outdated MappingProxyType docstrings #30281
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
Conversation
The docstrings for MappingProxyType's keys(), values(), and items() methods were never updated to reflect the changes that Python 3 brought to these APIs, namely returning views rather than lists.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! We should probably backport these.
Thanks @jab for the PR, and @gvanrossum for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10. |
@gvanrossum: Please replace |
GH-30709 is a backport of this pull request to the 3.10 branch. |
GH-30710 is a backport of this pull request to the 3.9 branch. |
The docstrings for MappingProxyType's keys(), values(), and items() methods were never updated to reflect the changes that Python 3 brought to these APIs, namely returning views rather than lists. (cherry picked from commit 2d10fa9) Co-authored-by: Joshua Bronson <jabronson@gmail.com>
The docstrings for MappingProxyType's keys(), values(), and items() methods were never updated to reflect the changes that Python 3 brought to these APIs, namely returning views rather than lists. (cherry picked from commit 2d10fa9) Co-authored-by: Joshua Bronson <jabronson@gmail.com>
The docstrings for MappingProxyType's keys(), values(), and items() methods were never updated to reflect the changes that Python 3 brought to these APIs, namely returning views rather than lists. (cherry picked from commit 2d10fa9) Co-authored-by: Joshua Bronson <jabronson@gmail.com>
The docstrings for MappingProxyType's keys(), values(), and items() methods were never updated to reflect the changes that Python 3 brought to these APIs, namely returning views rather than lists. (cherry picked from commit 2d10fa9) Co-authored-by: Joshua Bronson <jabronson@gmail.com>
The docstrings for MappingProxyType's keys(), values(), and items() methods were never updated to reflect the changes that Python 3 brought to these APIs, namely returning views rather than lists. (cherry picked from commit 2d10fa9) Co-authored-by: Joshua Bronson <jabronson@gmail.com>
The docstrings for
MappingProxyType
'skeys()
,values()
, anditems()
methods were never updated to reflect the changes that Python 3 brought to these APIs, namely returning views rather than lists.It looks like these docstrings were originally copy-pasted from
dict
's in the Python 2 days, but were never updated to matchdict
's updated docstrings when these APIs changed.Ideally these would be DRY'd to prevent future drift, but will leave that for another day.
Looks like creating a BPO issue for this would not be normative for such a trivial PR, so I've skipped doing that.
Hope this helps!