]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Correct typos in Ping's email address.
authorFred Drake <fdrake@acm.org>
Tue, 6 Mar 2001 07:19:34 +0000 (07:19 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 6 Mar 2001 07:19:34 +0000 (07:19 +0000)
Remove premature use of negative indexes in string operation examples;
negative indexes have not been explained at that point, and the use of
negative indexes are not necessary for the examples.

Doc/tut/tut.tex

index 1bdeefb98c5a30dc86cfd8619cc03d2fb210be6c..60245a811489cbc827038903ffb18b472c6f6c7e 100644 (file)
@@ -620,7 +620,7 @@ indexed position in the string results in an error:
 Traceback (most recent call last):
   File "<stdin>", line 1, in ?
 TypeError: object doesn't support item assignment
->>> word[:-1] = 'Splat'
+>>> word[:1] = 'Splat'
 Traceback (most recent call last):
   File "<stdin>", line 1, in ?
 TypeError: object doesn't support slice assignment
@@ -632,7 +632,7 @@ efficient:
 \begin{verbatim}
 >>> 'x' + word[1:]
 'xelpA'
->>> 'Splat' + word[-1:]
+>>> 'Splat' + word[4]
 'SplatA'
 \end{verbatim}
 
@@ -1645,7 +1645,7 @@ An example that uses most of the list methods:
 
 
 \subsection{Using Lists as Stacks \label{lists-as-stacks}}
-\sectionauthor{Ka-Ping Yee}{ping@lfs.org}
+\sectionauthor{Ka-Ping Yee}{ping@lfw.org}
 
 The list methods make it very easy to use a list as a stack, where the
 last element added is the first element retrieved (``last-in,
@@ -1673,7 +1673,7 @@ first-out'').  To add an item to the top of the stack, use
 
 
 \subsection{Using Lists as Queues \label{lists-as-queues}}
-\sectionauthor{Ka-Ping Yee}{ping@lfs.org}
+\sectionauthor{Ka-Ping Yee}{ping@lfw.org}
 
 You can also use a list conveniently as a queue, where the first
 element added is the first element retrieved (``first-in,