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

Dictionary view objects (dictview) - incorrect example #100049

Closed
eklunko opened this issue Dec 6, 2022 · 0 comments
Closed

Dictionary view objects (dictview) - incorrect example #100049

eklunko opened this issue Dec 6, 2022 · 0 comments
Labels
docs Documentation in the Doc dir

Comments

@eklunko
Copy link

eklunko commented Dec 6, 2022

Documentation

Link to the doc:
Dictionary view objects

Look at the examples. The output for values.mapping (near the end) now is:

mappingproxy({'eggs': 2, 'sausage': 1, 'bacon': 1, 'spam': 500})

It seems that the correct output should be:

mappingproxy({'bacon': 1, 'spam': 500})

Belongs to:

  • python 3.10
  • python 3.11

Linked PRs

@eklunko eklunko added the docs Documentation in the Doc dir label Dec 6, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Dec 10, 2022
…mple doc (pythonGH-100052)

(cherry picked from commit 7c0fb71)

Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Dec 10, 2022
…mple doc (pythonGH-100052)

(cherry picked from commit 7c0fb71)

Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
miss-islington added a commit that referenced this issue Dec 10, 2022
…oc (GH-100052)

(cherry picked from commit 7c0fb71)

Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
miss-islington added a commit that referenced this issue Dec 10, 2022
…oc (GH-100052)

(cherry picked from commit 7c0fb71)

Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
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
Projects
None yet
Development

No branches or pull requests

2 participants