diff options
author | Fred Drake <fdrake@acm.org> | 2001-04-11 04:38:34 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-04-11 04:38:34 (GMT) |
commit | 5d6e402e0c5feb7bf60a0dd78ed1b114aca05ecb (patch) | |
tree | 7de0f4ebc30860e452ce98c58e7d030d2a5b9e5f /Doc | |
parent | 285a7e59f308613945ced43889fe12eb993af838 (diff) | |
download | cpython-5d6e402e0c5feb7bf60a0dd78ed1b114aca05ecb.zip cpython-5d6e402e0c5feb7bf60a0dd78ed1b114aca05ecb.tar.gz cpython-5d6e402e0c5feb7bf60a0dd78ed1b114aca05ecb.tar.bz2 |
Based on a comment by Konrad Hinsen on python-list:
Change "EOF" to "end-of-file", on the premise that it is easier for
new programmers to understand (at least a little).
This does not attempt to explain "file or device attached to standard
input."
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/tut/tut.tex | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex index 4402138..d1637bb 100644 --- a/Doc/tut/tut.tex +++ b/Doc/tut/tut.tex @@ -175,7 +175,7 @@ lives is an installation option, other places are possible; check with your local Python guru or system administrator. (E.g., \file{/usr/local/python} is a popular alternative location.) -Typing an \EOF{} character (\kbd{Control-D} on \UNIX, +Typing an end-of-file character (\kbd{Control-D} on \UNIX, \kbd{Control-Z} on DOS or Windows) at the primary prompt causes the interpreter to exit with a zero exit status. If that doesn't work, you can exit the interpreter by typing the following commands: @@ -211,9 +211,9 @@ Note that there is a difference between \samp{python file} and program, such as calls to \code{input()} and \code{raw_input()}, are satisfied from \emph{file}. Since this file has already been read until the end by the parser before the program starts executing, the -program will encounter EOF immediately. In the former case (which is -usually what you want) they are satisfied from whatever file or device -is connected to standard input of the Python interpreter. +program will encounter end-of-file immediately. In the former case +(which is usually what you want) they are satisfied from whatever file +or device is connected to standard input of the Python interpreter. When a script file is used, it is sometimes useful to be able to run the script and enter interactive mode afterwards. This can be done by |