mirror of https://github.com/python/cpython.git
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
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue