mirror of https://github.com/python/cpython
gh-100049: fix `repr` for `mappingproxy` in dictionary view example doc (#100052)
This commit is contained in:
parent
7a0f3c1d92
commit
7c0fb71fbf
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue