]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-100049: fix `repr` for `mappingproxy` in dictionary view example doc (#100052)
authorram vikram singh <ramvikrams243@gmail.com>
Sat, 10 Dec 2022 09:16:00 +0000 (14:46 +0530)
committerGitHub <noreply@github.com>
Sat, 10 Dec 2022 09:16:00 +0000 (14:46 +0530)
Doc/library/stdtypes.rst

index 73debe5ceeaf3a7f0d3907e9cb28a93d1bdddaf6..40f787ffe6395de6f089e45ee06c380d81703e07 100644 (file)
@@ -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