Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 34e1777

Browse files
committed
Note that EOF is ^Z on DOS. Spell Unix as \UNIX in some more places.
Note that .pyc files are platform independent.
1 parent 6915568 commit 34e1777

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

Doc/tut.tex

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ \subsection{Interactive Mode}
205205
with the {\em primary\ prompt}, usually three greater-than signs ({\tt
206206
>>>}); for continuation lines it prompts with the
207207
{\em secondary\ prompt},
208-
by default three dots ({\tt ...}). Typing an EOF (Control-D)
208+
by default three dots ({\tt ...}). Typing an EOF character
209+
(Control-D on {\UNIX}, Control-Z on DOS or Windows)
209210
at the primary prompt causes the interpreter to exit with a zero exit
210211
status.
211212

@@ -275,7 +276,9 @@ \subsection{``Compiled'' Python files}
275276
write the compiled version to {\tt spam.pyc}. It is not an error if
276277
this attempt fails; if for any reason the file is not written
277278
completely, the resulting {\tt spam.pyc} file will be recognized as
278-
invalid and thus ignored later.
279+
invalid and thus ignored later. The contents of the {\tt spam.pyc}
280+
file is platform independent, so a Python module directory can be
281+
shared by machines of different architectures.
279282

280283
\subsection{Executable Python scripts}
281284

@@ -3205,9 +3208,9 @@ \section{New Class Features}
32053208

32063209
\section{Unix Signal Handling}
32073210

3208-
On Unix, Python now supports signal handling. The module
3211+
On {\UNIX}, Python now supports signal handling. The module
32093212
\code{signal} exports functions \code{signal}, \code{pause} and
3210-
\code{alarm}, which act similar to their Unix counterparts. The
3213+
\code{alarm}, which act similar to their {\UNIX} counterparts. The
32113214
module also exports the conventional names for the various signal
32123215
classes (also usable with \code{os.kill()}) and \code{SIG_IGN} and
32133216
\code{SIG_DFL}. See the section on \code{signal} in the Library

Doc/tut/tut.tex

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ \subsection{Interactive Mode}
205205
with the {\em primary\ prompt}, usually three greater-than signs ({\tt
206206
>>>}); for continuation lines it prompts with the
207207
{\em secondary\ prompt},
208-
by default three dots ({\tt ...}). Typing an EOF (Control-D)
208+
by default three dots ({\tt ...}). Typing an EOF character
209+
(Control-D on {\UNIX}, Control-Z on DOS or Windows)
209210
at the primary prompt causes the interpreter to exit with a zero exit
210211
status.
211212

@@ -275,7 +276,9 @@ \subsection{``Compiled'' Python files}
275276
write the compiled version to {\tt spam.pyc}. It is not an error if
276277
this attempt fails; if for any reason the file is not written
277278
completely, the resulting {\tt spam.pyc} file will be recognized as
278-
invalid and thus ignored later.
279+
invalid and thus ignored later. The contents of the {\tt spam.pyc}
280+
file is platform independent, so a Python module directory can be
281+
shared by machines of different architectures.
279282

280283
\subsection{Executable Python scripts}
281284

@@ -3205,9 +3208,9 @@ \section{New Class Features}
32053208

32063209
\section{Unix Signal Handling}
32073210

3208-
On Unix, Python now supports signal handling. The module
3211+
On {\UNIX}, Python now supports signal handling. The module
32093212
\code{signal} exports functions \code{signal}, \code{pause} and
3210-
\code{alarm}, which act similar to their Unix counterparts. The
3213+
\code{alarm}, which act similar to their {\UNIX} counterparts. The
32113214
module also exports the conventional names for the various signal
32123215
classes (also usable with \code{os.kill()}) and \code{SIG_IGN} and
32133216
\code{SIG_DFL}. See the section on \code{signal} in the Library

0 commit comments

Comments
 (0)