]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-100049: fix `repr` for `mappingproxy` in dictionary view example doc (GH-100052)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 10 Dec 2022 09:23:24 +0000 (01:23 -0800)
committerGitHub <noreply@github.com>
Sat, 10 Dec 2022 09:23:24 +0000 (01:23 -0800)
(cherry picked from commit 7c0fb71fbfa8682f56c15832e2c793a6180f2ec0)

Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
Doc/library/stdtypes.rst

index 75550d6e4698311e47e45ae1fe27d2f587767615..03264ebbeab90d1f4eca452f6ca5fcf761114ac3 100644 (file)
@@ -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