summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-06-16 20:49:30 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-06-16 20:49:30 (GMT)
commit8699aeaf346ea1ca00841047abbcf9245c286301 (patch)
tree00758b2f7b1e6e2cea6d419b7ea47cfc85d0a0e5 /Doc/tutorial
parent2c8600446d4b73c15136ea34c5aad546372ac506 (diff)
downloadcpython-8699aeaf346ea1ca00841047abbcf9245c286301.zip
cpython-8699aeaf346ea1ca00841047abbcf9245c286301.tar.gz
cpython-8699aeaf346ea1ca00841047abbcf9245c286301.tar.bz2
The key-value pairs can be lists or tuples or any iterable.
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/datastructures.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst
index 58dd614..ef364b2 100644
--- a/Doc/tutorial/datastructures.rst
+++ b/Doc/tutorial/datastructures.rst
@@ -466,7 +466,7 @@ Here is a small example using a dictionary::
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}