summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-12-05 06:39:54 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-12-05 06:39:54 (GMT)
commitec3402f287f27219e8c308a16623f6431a571ea3 (patch)
tree9cd14ded4d5cb171c68eb2ce6029460da7fa7c8a
parentbd3a240e6dc1f705e52d222ff89a5d57a2b8b8f5 (diff)
downloadcpython-ec3402f287f27219e8c308a16623f6431a571ea3.zip
cpython-ec3402f287f27219e8c308a16623f6431a571ea3.tar.gz
cpython-ec3402f287f27219e8c308a16623f6431a571ea3.tar.bz2
Fix typo
-rw-r--r--Doc/tut/tut.tex8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex
index f84978a..e3d9ea3 100644
--- a/Doc/tut/tut.tex
+++ b/Doc/tut/tut.tex
@@ -4454,7 +4454,7 @@ running \samp{python demo.py one two three} at the command line:
\begin{verbatim}
>>> import sys
->>> print sys.argv[]
+>>> print sys.argv
['demo.py', 'one', 'two', 'three']
\end{verbatim}
@@ -4500,7 +4500,7 @@ optimized solutions:
\section{Mathematics\label{mathematics}}
-The \ulink{\module{math}}{../lib/module-math.html} math module gives
+The \ulink{\module{math}}{../lib/module-math.html} module gives
access to the underlying C library functions for floating point math:
\begin{verbatim}
@@ -4618,9 +4618,9 @@ quickly demonstrates that the traditional approach is faster:
\begin{verbatim}
>>> from timeit import Timer
>>> dir(Timer)
->>> Timer('t=a; a=b; b=t', 'a=1; b=1').timeit()
+>>> Timer('t=a; a=b; b=t', 'a=1; b=2').timeit()
0.60864915603680925
->>> Timer('a,b = b,a', 'a=1; b=1').timeit()
+>>> Timer('a,b = b,a', 'a=1; b=2').timeit()
0.8625194857439773
\end{verbatim}