Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c16e8f1

Browse files
committed
Make twisted example a bit more logical.
1 parent c814826 commit c16e8f1

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Doc/library/stdtypes.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2046,12 +2046,12 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
20462046
values are added as items to the dictionary. If a key is specified both in
20472047
the positional argument and as a keyword argument, the value associated with
20482048
the keyword is retained in the dictionary. For example, these all return a
2049-
dictionary equal to ``{"one": 2, "two": 3}``:
2049+
dictionary equal to ``{"one": 1, "two": 2}``:
20502050

2051-
* ``dict(one=2, two=3)``
2052-
* ``dict({'one': 2, 'two': 3})``
2053-
* ``dict(zip(('one', 'two'), (2, 3)))``
2054-
* ``dict([['two', 3], ['one', 2]])``
2051+
* ``dict(one=1, two=2)``
2052+
* ``dict({'one': 1, 'two': 2})``
2053+
* ``dict(zip(('one', 'two'), (1, 2)))``
2054+
* ``dict([['two', 2], ['one', 1]])``
20552055

20562056
The first example only works for keys that are valid Python identifiers; the
20572057
others work with any valid keys.

0 commit comments

Comments
 (0)