#16206: merge with 3.2.

This commit is contained in:
Ezio Melotti 2012-10-26 19:15:26 +03:00
commit a5941f8643
1 changed files with 6 additions and 6 deletions

View File

@ -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