]> granicus.if.org Git - python/commitdiff
In the example iterating over sys.argv and opening each argument,
authorGuido van Rossum <guido@python.org>
Tue, 7 Jul 1998 20:18:06 +0000 (20:18 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 7 Jul 1998 20:18:06 +0000 (20:18 +0000)
change it to iterate over sys.argv[1:].  Suggestion by Gerry Wiener.

Doc/tut/tut.tex

index 3b639184b244d3dc1c57bf8c7d5e74d593fcf345..14cb3ca544a177b92bf6133a035b53632a2b2094 100644 (file)
@@ -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: