diff options
author | Fred Drake <fdrake@acm.org> | 2006-05-03 02:04:40 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2006-05-03 02:04:40 (GMT) |
commit | f25fa6ddb97979abe06fec961c22d8db0b6563a1 (patch) | |
tree | 8a615a1de9bebe4a04c8f7f8ff3098305dc1f744 /Doc/tut | |
parent | f863609cd64fef0fa0a36bd464096763c943f07e (diff) | |
download | cpython-f25fa6ddb97979abe06fec961c22d8db0b6563a1.zip cpython-f25fa6ddb97979abe06fec961c22d8db0b6563a1.tar.gz cpython-f25fa6ddb97979abe06fec961c22d8db0b6563a1.tar.bz2 |
avoid ugly markup based on the unfortunate conversions of ">>" and "<<" to
guillemets; no need for magic here
Diffstat (limited to 'Doc/tut')
-rw-r--r-- | Doc/tut/glossary.tex | 2 | ||||
-rw-r--r-- | Doc/tut/tut.tex | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Doc/tut/glossary.tex b/Doc/tut/glossary.tex index c8082d5..17cc767 100644 --- a/Doc/tut/glossary.tex +++ b/Doc/tut/glossary.tex @@ -7,7 +7,7 @@ \index{>>>} -\item[\code{>\code{>}>}] +\item[\code{>>>}] The typical Python prompt of the interactive shell. Often seen for code examples that can be tried right away in the interpreter. diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex index 9d45abe..f6cdb1e 100644 --- a/Doc/tut/tut.tex +++ b/Doc/tut/tut.tex @@ -264,7 +264,7 @@ the command or module to handle. When commands are read from a tty, the interpreter is said to be in \emph{interactive mode}. In this mode it prompts for the next command with the \emph{primary prompt}, usually three greater-than signs -(\samp{>\code{>}>~}); for continuation lines it prompts with the +(\samp{>>>~}); for continuation lines it prompts with the \emph{secondary prompt}, by default three dots (\samp{...~}). The interpreter prints a welcome message stating its version number and a copyright notice before printing the first prompt: @@ -423,7 +423,7 @@ if filename and os.path.isfile(filename): \chapter{An Informal Introduction to Python \label{informal}} In the following examples, input and output are distinguished by the -presence or absence of prompts (\samp{>\code{>}>~} and \samp{...~}): to repeat +presence or absence of prompts (\samp{>>>~} and \samp{...~}): to repeat the example, you must type everything after the prompt, when the prompt appears; lines that do not begin with a prompt are output from the interpreter. % @@ -455,7 +455,7 @@ STRING = "# This is not a comment." \section{Using Python as a Calculator \label{calculator}} Let's try some simple Python commands. Start the interpreter and wait -for the primary prompt, \samp{>\code{>}>~}. (It shouldn't take long.) +for the primary prompt, \samp{>>>~}. (It shouldn't take long.) \subsection{Numbers \label{numbers}} |