mirror of
https://github.com/python/cpython.git
synced 2026-02-13 19:04:37 +00:00
gh-100049: fix repr for mappingproxy in dictionary view example doc (#100052)
This commit is contained in:
parent
7a0f3c1d92
commit
7c0fb71fbf
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue