mirror of
https://github.com/python/cpython.git
synced 2025-10-03 05:35:59 +00:00
gh-100049: fix repr
for mappingproxy
in dictionary view example doc (GH-100052)
(cherry picked from commit 7c0fb71fbf
)
Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
This commit is contained in:
parent
3939a4b7d9
commit
9aca00341a
1 changed files with 1 additions and 1 deletions
|
@ -4733,7 +4733,7 @@ An example of dictionary view usage::
|
||||||
|
|
||||||
>>> # get back a read-only proxy for the original dictionary
|
>>> # get back a read-only proxy for the original dictionary
|
||||||
>>> values.mapping
|
>>> values.mapping
|
||||||
mappingproxy({'eggs': 2, 'sausage': 1, 'bacon': 1, 'spam': 500})
|
mappingproxy({'bacon': 1, 'spam': 500})
|
||||||
>>> values.mapping['spam']
|
>>> values.mapping['spam']
|
||||||
500
|
500
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue