[Python-checkins] gh-100049: fix `repr` for `mappingproxy` in dictionary view example doc (#100052)
kumaraditya303
webhook-mailer at python.org
Sat Dec 10 04:16:06 EST 2022
https://github.com/python/cpython/commit/7c0fb71fbfa8682f56c15832e2c793a6180f2ec0
commit: 7c0fb71fbfa8682f56c15832e2c793a6180f2ec0
branch: main
author: ram vikram singh <ramvikrams243 at gmail.com>
committer: kumaraditya303 <59607654+kumaraditya303 at users.noreply.github.com>
date: 2022-12-10T14:46:00+05:30
summary:
gh-100049: fix `repr` for `mappingproxy` in dictionary view example doc (#100052)
files:
M Doc/library/stdtypes.rst
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
More information about the Python-checkins
mailing list