X Tutup
The Wayback Machine - https://web.archive.org/web/20221209100652/https://github.com/python/cpython/issues/100049
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

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

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

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

1 participant
X Tutup