]> 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:24:46 +0000 (01:24 -0800)
committerGitHub <noreply@github.com>
Sat, 10 Dec 2022 09:24:46 +0000 (01:24 -0800)
(cherry picked from commit 7c0fb71fbfa8682f56c15832e2c793a6180f2ec0)

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

index 8f90bd3efa6c9b9e5181dc2609195c74ec2c409d..a6a7eea9f0713978b5d8c8faaaaa4ee436bc9665 100644 (file)
@@ -4693,7 +4693,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