diff options
author | Guido van Rossum <guido@python.org> | 1991-11-12 15:45:03 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-11-12 15:45:03 (GMT) |
commit | 8f96f7734c9dcaa142b6a3961e4e519fcc5a4226 (patch) | |
tree | ea5b2d80cd03d82d9d902c723ff292e1cbaef5a5 /Doc | |
parent | 92fba0293f133059a941590768fadae6aeb92908 (diff) | |
download | cpython-8f96f7734c9dcaa142b6a3961e4e519fcc5a4226.zip cpython-8f96f7734c9dcaa142b6a3961e4e519fcc5a4226.tar.gz cpython-8f96f7734c9dcaa142b6a3961e4e519fcc5a4226.tar.bz2 |
Fixed dictionary example to use commas instead of semicolons.
(This was actually a bug in the interpreter!)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/tut.tex | 4 | ||||
-rw-r--r-- | Doc/tut/tut.tex | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Doc/tut.tex b/Doc/tut.tex index e2dc90f..262c89f 100644 --- a/Doc/tut.tex +++ b/Doc/tut.tex @@ -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') diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex index e2dc90f..262c89f 100644 --- a/Doc/tut/tut.tex +++ b/Doc/tut/tut.tex @@ -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') |