From: ram vikram singh Date: Sat, 10 Dec 2022 09:16:00 +0000 (+0530) Subject: gh-100049: fix `repr` for `mappingproxy` in dictionary view example doc (#100052) X-Git-Tag: v3.12.0a4~245 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7c0fb71fbfa8682f56c15832e2c793a6180f2ec0;p=thirdparty%2FPython%2Fcpython.git gh-100049: fix `repr` for `mappingproxy` in dictionary view example doc (#100052) --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 73debe5ceeaf..40f787ffe639 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -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