Commit a4289a79 authored by Guido van Rossum's avatar Guido van Rossum

In the example iterating over sys.argv and opening each argument,

change it to iterate over sys.argv[1:].  Suggestion by Gerry Wiener.
parent 7c29b232
...@@ -2708,7 +2708,7 @@ useful to place code that must be executed if the try clause does not ...@@ -2708,7 +2708,7 @@ useful to place code that must be executed if the try clause does not
raise an exception. For example: raise an exception. For example:
\begin{verbatim} \begin{verbatim}
for arg in sys.argv: for arg in sys.argv[1:]:
try: try:
f = open(arg, 'r') f = open(arg, 'r')
except IOError: except IOError:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment