diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-10-26 16:15:53 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-10-26 16:15:53 (GMT) |
commit | 9a56f8c1ed846cc1c133c52c4c00d2cb5492c732 (patch) | |
tree | 5e898af674a855b707dba512c624aeb81f9aab98 /Doc | |
parent | 3d6948e4325fe0f142fa074377c4df08537d6a46 (diff) | |
parent | a5941f8643ac6de551256a89fb77cd5a480b16b8 (diff) | |
download | cpython-9a56f8c1ed846cc1c133c52c4c00d2cb5492c732.zip cpython-9a56f8c1ed846cc1c133c52c4c00d2cb5492c732.tar.gz cpython-9a56f8c1ed846cc1c133c52c4c00d2cb5492c732.tar.bz2 |
#16206: merge with 3.3.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/stdtypes.rst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 1532dbb..433befa 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -2976,13 +2976,13 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098: replaces the value from the positional argument. To illustrate, the following examples all return a dictionary equal to - ``{"one": 1, "two": 2}``:: + ``{"one": 1, "two": 2, "three": 3}``:: - >>> a = dict(one=1, two=2) - >>> b = dict({'one': 1, 'two': 2}) - >>> c = dict(zip(('one', 'two'), (1, 2))) - >>> d = dict([['two', 2], ['one', 1]]) - >>> e = {"one": 1, "two": 2} + >>> a = dict(one=1, two=2, three=3) + >>> b = {'one': 1, 'two': 2, 'three': 3} + >>> c = dict(zip(['one', 'two', 'three'], [1, 2, 3])) + >>> d = dict([('two', 2), ('one', 1), ('three', 3)]) + >>> e = dict({'three': 3, 'one': 1, 'two': 2}) >>> a == b == c == d == e True |