Skip to content

Commit

Permalink
gh-100049: fix repr for mappingproxy in dictionary view example d…
Browse files Browse the repository at this point in the history
…oc (#100052)
  • Loading branch information
ramvikrams committed Dec 10, 2022
1 parent 7a0f3c1 commit 7c0fb71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4743,7 +4743,7 @@ An example of dictionary view usage::

>>> # get back a read-only proxy for the original dictionary
>>> values.mapping
mappingproxy({'eggs': 2, 'sausage': 1, 'bacon': 1, 'spam': 500})
mappingproxy({'bacon': 1, 'spam': 500})
>>> values.mapping['spam']
500

Expand Down

0 comments on commit 7c0fb71

Please sign in to comment.