Skip to content

Commit 9a56f8c

Browse files
committed
python#16206: merge with 3.3.
2 parents 3d6948e + a5941f8 commit 9a56f8c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Doc/library/stdtypes.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2976,13 +2976,13 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
29762976
replaces the value from the positional argument.
29772977

29782978
To illustrate, the following examples all return a dictionary equal to
2979-
``{"one": 1, "two": 2}``::
2979+
``{"one": 1, "two": 2, "three": 3}``::
29802980

2981-
>>> a = dict(one=1, two=2)
2982-
>>> b = dict({'one': 1, 'two': 2})
2983-
>>> c = dict(zip(('one', 'two'), (1, 2)))
2984-
>>> d = dict([['two', 2], ['one', 1]])
2985-
>>> e = {"one": 1, "two": 2}
2981+
>>> a = dict(one=1, two=2, three=3)
2982+
>>> b = {'one': 1, 'two': 2, 'three': 3}
2983+
>>> c = dict(zip(['one', 'two', 'three'], [1, 2, 3]))
2984+
>>> d = dict([('two', 2), ('one', 1), ('three', 3)])
2985+
>>> e = dict({'three': 3, 'one': 1, 'two': 2})
29862986
>>> a == b == c == d == e
29872987
True
29882988

0 commit comments

Comments
 (0)