From a4289a79f84c42ca256ae3b3f52919092067686e Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 7 Jul 1998 20:18:06 +0000 Subject: In the example iterating over sys.argv and opening each argument, change it to iterate over sys.argv[1:]. Suggestion by Gerry Wiener. --- Doc/tut/tut.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v0.12