]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixed dictionary example to use commas instead of semicolons.
authorGuido van Rossum <guido@python.org>
Tue, 12 Nov 1991 15:45:03 +0000 (15:45 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 12 Nov 1991 15:45:03 +0000 (15:45 +0000)
(This was actually a bug in the interpreter!)

Doc/tut.tex
Doc/tut/tut.tex

index e2dc90fcef79f15c379d7bd683d5dcd65f660de1..262c89f2483072739a32130db3c239b0cc10c6cd 100644 (file)
@@ -1075,13 +1075,13 @@ Here is a small example using a dictionary:
 >>> tel = {'jack': 4098, 'sape': 4139}
 >>> tel['guido'] = 4127
 >>> tel
-{'sape': 4139; 'guido': 4127; 'jack': 4098}
+{'sape': 4139, 'guido': 4127, 'jack': 4098}
 >>> tel['jack']
 4098
 >>> del tel['sape']
 >>> tel['irv'] = 4127
 >>> tel
-{'guido': 4127; 'irv': 4127; 'jack': 4098}
+{'guido': 4127, 'irv': 4127, 'jack': 4098}
 >>> tel.keys()
 ['guido', 'irv', 'jack']
 >>> tel.has_key('guido')
index e2dc90fcef79f15c379d7bd683d5dcd65f660de1..262c89f2483072739a32130db3c239b0cc10c6cd 100644 (file)
@@ -1075,13 +1075,13 @@ Here is a small example using a dictionary:
 >>> tel = {'jack': 4098, 'sape': 4139}
 >>> tel['guido'] = 4127
 >>> tel
-{'sape': 4139; 'guido': 4127; 'jack': 4098}
+{'sape': 4139, 'guido': 4127, 'jack': 4098}
 >>> tel['jack']
 4098
 >>> del tel['sape']
 >>> tel['irv'] = 4127
 >>> tel
-{'guido': 4127; 'irv': 4127; 'jack': 4098}
+{'guido': 4127, 'irv': 4127, 'jack': 4098}
 >>> tel.keys()
 ['guido', 'irv', 'jack']
 >>> tel.has_key('guido')