diff options
author | Georg Brandl <georg@python.org> | 2010-10-17 11:23:56 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-10-17 11:23:56 (GMT) |
commit | c16e8f17ac7dd3784d64c9034be230fb957de73d (patch) | |
tree | d4fd047bcc4e5e15aeedda916f468fb3ac1ca629 /Doc | |
parent | c8148265dc2e5428ff6befbb3ac776422f6b902c (diff) | |
download | cpython-c16e8f17ac7dd3784d64c9034be230fb957de73d.zip cpython-c16e8f17ac7dd3784d64c9034be230fb957de73d.tar.gz cpython-c16e8f17ac7dd3784d64c9034be230fb957de73d.tar.bz2 |
Make twisted example a bit more logical.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/stdtypes.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index ec4f9b8..27dd249 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -2046,12 +2046,12 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098: values are added as items to the dictionary. If a key is specified both in the positional argument and as a keyword argument, the value associated with the keyword is retained in the dictionary. For example, these all return a - dictionary equal to ``{"one": 2, "two": 3}``: + dictionary equal to ``{"one": 1, "two": 2}``: - * ``dict(one=2, two=3)`` - * ``dict({'one': 2, 'two': 3})`` - * ``dict(zip(('one', 'two'), (2, 3)))`` - * ``dict([['two', 3], ['one', 2]])`` + * ``dict(one=1, two=2)`` + * ``dict({'one': 1, 'two': 2})`` + * ``dict(zip(('one', 'two'), (1, 2)))`` + * ``dict([['two', 2], ['one', 1]])`` The first example only works for keys that are valid Python identifiers; the others work with any valid keys. |