From: Guido van Rossum Date: Tue, 7 Jul 1998 20:18:06 +0000 (+0000) Subject: In the example iterating over sys.argv and opening each argument, X-Git-Tag: v1.5.2a1~343 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a4289a79f84c42ca256ae3b3f52919092067686e;p=python In the example iterating over sys.argv and opening each argument, change it to iterate over sys.argv[1:]. Suggestion by Gerry Wiener. --- diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex index 3b639184b2..14cb3ca544 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: