[Python-checkins] r73453 - python/branches/py3k/Doc/tutorial/datastructures.rst
raymond.hettinger
python-checkins at python.org
Tue Jun 16 22:49:30 CEST 2009
Author: raymond.hettinger
Date: Tue Jun 16 22:49:30 2009
New Revision: 73453
Log:
The key-value pairs can be lists or tuples or any iterable.
Modified:
python/branches/py3k/Doc/tutorial/datastructures.rst
Modified: python/branches/py3k/Doc/tutorial/datastructures.rst
==============================================================================
--- python/branches/py3k/Doc/tutorial/datastructures.rst (original)
+++ python/branches/py3k/Doc/tutorial/datastructures.rst Tue Jun 16 22:49:30 2009
@@ -466,7 +466,7 @@
False
The :func:`dict` constructor builds dictionaries directly from sequences of
-key-value pairs stored as tuples. ::
+key-value pairs::
>>> dict([('sape', 4139), ('guido', 4127), ('jack', 4098)])
{'sape': 4139, 'jack': 4098, 'guido': 4127}
More information about the Python-checkins
mailing list