From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 10 Dec 2022 09:23:24 +0000 (-0800) Subject: gh-100049: fix `repr` for `mappingproxy` in dictionary view example doc (GH-100052) X-Git-Tag: v3.11.2~183 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9aca00341a75b03f08ed232f0a697eddefa5c8eb;p=thirdparty%2FPython%2Fcpython.git gh-100049: fix `repr` for `mappingproxy` in dictionary view example doc (GH-100052) (cherry picked from commit 7c0fb71fbfa8682f56c15832e2c793a6180f2ec0) Co-authored-by: ram vikram singh --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 75550d6e4698..03264ebbeab9 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -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