diff options
author | Guido van Rossum <guido@python.org> | 1998-07-07 20:18:06 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-07-07 20:18:06 (GMT) |
commit | a4289a79f84c42ca256ae3b3f52919092067686e (patch) | |
tree | 1efd2e75982f2aa190adca49058a9b671ec3d520 /Doc/tut | |
parent | 7c29b2328b0aec684826033896f3718c747cb6df (diff) | |
download | cpython-a4289a79f84c42ca256ae3b3f52919092067686e.zip cpython-a4289a79f84c42ca256ae3b3f52919092067686e.tar.gz cpython-a4289a79f84c42ca256ae3b3f52919092067686e.tar.bz2 |
In the example iterating over sys.argv and opening each argument,
change it to iterate over sys.argv[1:]. Suggestion by Gerry Wiener.
Diffstat (limited to 'Doc/tut')
-rw-r--r-- | Doc/tut/tut.tex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex index 3b63918..14cb3ca 100644 --- a/Doc/tut/tut.tex +++ b/Doc/tut/tut.tex @@ -2708,7 +2708,7 @@ useful to place code that must be executed if the try clause does not raise an exception. For example: \begin{verbatim} -for arg in sys.argv: +for arg in sys.argv[1:]: try: f = open(arg, 'r') except IOError: |