Skip to content

Commit

Permalink
pythongh-100049: fix repr for mappingproxy in dictionary view exa…
Browse files Browse the repository at this point in the history
…mple doc (pythonGH-100052)

(cherry picked from commit 7c0fb71)

Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
  • Loading branch information
ramvikrams authored and miss-islington committed Dec 10, 2022
1 parent 3939a4b commit 76b99f5
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 @@ -4733,7 +4733,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 76b99f5

Please sign in to comment.