[Python-checkins] gh-100049: fix `repr` for `mappingproxy` in dictionary view example doc (GH-100052)

miss-islington webhook-mailer at python.org
Sat Dec 10 04:23:29 EST 2022


https://github.com/python/cpython/commit/9aca00341a75b03f08ed232f0a697eddefa5c8eb
commit: 9aca00341a75b03f08ed232f0a697eddefa5c8eb
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-12-10T01:23:24-08:00
summary:

gh-100049: fix `repr` for `mappingproxy` in dictionary view example doc (GH-100052)

(cherry picked from commit 7c0fb71fbfa8682f56c15832e2c793a6180f2ec0)

Co-authored-by: ram vikram singh <ramvikrams243 at gmail.com>

files:
M Doc/library/stdtypes.rst

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
 



More information about the Python-checkins mailing list