1998-05-06 16:52:49 -03:00
|
|
|
\documentclass{manual}
|
|
|
|
|
|
|
|
\title{Python Reference Manual}
|
|
|
|
|
|
|
|
\input{boilerplate}
|
|
|
|
|
|
|
|
\makeindex
|
|
|
|
|
|
|
|
\begin{document}
|
|
|
|
|
|
|
|
\maketitle
|
|
|
|
|
|
|
|
\input{copyright}
|
|
|
|
|
|
|
|
\begin{abstract}
|
|
|
|
|
|
|
|
\noindent
|
|
|
|
Python is a simple, yet powerful, interpreted programming language
|
1998-05-07 14:27:32 -03:00
|
|
|
that bridges the gap between \C{} and shell programming, and is thus
|
1998-05-06 16:52:49 -03:00
|
|
|
ideally suited for ``throw-away programming'' and rapid prototyping.
|
|
|
|
Its syntax is put together from constructs borrowed from a variety of
|
1998-05-07 14:27:32 -03:00
|
|
|
other languages; most prominent are influences from \ABC, \C, Modula-3
|
1998-05-06 16:52:49 -03:00
|
|
|
and Icon.
|
|
|
|
|
|
|
|
The Python interpreter is easily extended with new functions and data
|
1998-05-07 14:27:32 -03:00
|
|
|
types implemented in \C{}. Python is also suitable as an extension
|
1998-05-06 16:52:49 -03:00
|
|
|
language for highly customizable C applications such as editors or
|
|
|
|
window managers.
|
|
|
|
|
|
|
|
Python is available for various operating systems, amongst which
|
1998-05-07 14:27:32 -03:00
|
|
|
several flavors of \UNIX{} (including Linux), the Apple Macintosh O.S.,
|
1998-05-06 16:52:49 -03:00
|
|
|
MS-DOS, MS-Windows 3.1, Windows NT, and OS/2.
|
|
|
|
|
|
|
|
This reference manual describes the syntax and ``core semantics'' of
|
|
|
|
the language. It is terse, but attempts to be exact and complete.
|
|
|
|
The semantics of non-essential built-in object types and of the
|
1998-05-07 14:27:32 -03:00
|
|
|
built-in functions and modules are described in the \emph{Python
|
1998-05-06 16:52:49 -03:00
|
|
|
Library Reference}. For an informal introduction to the language, see
|
1998-05-07 14:27:32 -03:00
|
|
|
the \emph{Python Tutorial}.
|
1998-05-06 16:52:49 -03:00
|
|
|
|
|
|
|
\end{abstract}
|
|
|
|
|
|
|
|
\tableofcontents
|
|
|
|
|
1998-05-07 14:27:32 -03:00
|
|
|
\input{ref1} % Introduction
|
|
|
|
\input{ref2} % Lexical analysis
|
|
|
|
\input{ref3} % Data model
|
|
|
|
\input{ref4} % Execution model
|
|
|
|
\input{ref5} % Expressions and conditions
|
|
|
|
\input{ref6} % Simple statements
|
|
|
|
\input{ref7} % Compound statements
|
|
|
|
\input{ref8} % Top-level components
|
1998-05-06 16:52:49 -03:00
|
|
|
|
|
|
|
\input{ref.ind}
|
|
|
|
|
|
|
|
\end{document}
|