From: Raymond Hettinger Date: Tue, 16 Jun 2009 20:49:30 +0000 (+0000) Subject: The key-value pairs can be lists or tuples or any iterable. X-Git-Tag: v3.1~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8699aeaf346ea1ca00841047abbcf9245c286301;p=python The key-value pairs can be lists or tuples or any iterable. --- diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst index 58dd614738..ef364b20f8 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}