[Python-checkins] r85639 - python/branches/py3k/Doc/library/stdtypes.rst

georg.brandl python-checkins at python.org
Sun Oct 17 13:23:56 CEST 2010


Author: georg.brandl
Date: Sun Oct 17 13:23:56 2010
New Revision: 85639
Log:
Make twisted example a bit more logical.
Modified:
 python/branches/py3k/Doc/library/stdtypes.rst
Modified: python/branches/py3k/Doc/library/stdtypes.rst
==============================================================================
--- python/branches/py3k/Doc/library/stdtypes.rst	(original)
+++ python/branches/py3k/Doc/library/stdtypes.rst	Sun Oct 17 13:23:56 2010
@@ -2046,12 +2046,12 @@
 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.


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /