1992-04-06 16:04:04 +02:00
|
|
|
\documentstyle[twoside,11pt,myformat]{report}
|
1991-11-21 14:53:03 +01:00
|
|
|
|
1994-08-01 14:22:53 +02:00
|
|
|
\title{Python Reference Manual}
|
1992-01-29 15:47:05 +01:00
|
|
|
|
1991-11-21 14:53:03 +01:00
|
|
|
\author{
|
|
|
|
Guido van Rossum \\
|
1993-11-05 18:11:16 +01:00
|
|
|
Dept. CST, CWI, P.O. Box 94079 \\
|
|
|
|
1090 GB Amsterdam, The Netherlands \\
|
1991-11-21 14:53:03 +01:00
|
|
|
E-mail: {\tt guido@cwi.nl}
|
|
|
|
}
|
|
|
|
|
1994-08-08 14:30:22 +02:00
|
|
|
\date{14 July 1994 \\ Release 1.0.3} % XXX update before release!
|
1993-11-23 17:28:45 +01:00
|
|
|
|
1992-03-06 11:52:59 +01:00
|
|
|
% Tell \index to actually write the .idx file
|
|
|
|
\makeindex
|
|
|
|
|
1991-11-21 14:53:03 +01:00
|
|
|
\begin{document}
|
|
|
|
|
|
|
|
\pagenumbering{roman}
|
|
|
|
|
|
|
|
\maketitle
|
|
|
|
|
|
|
|
\begin{abstract}
|
|
|
|
|
|
|
|
\noindent
|
1992-01-20 18:10:21 +01:00
|
|
|
Python is a simple, yet powerful, interpreted programming language
|
|
|
|
that bridges the gap between C and shell programming, and is thus
|
|
|
|
ideally suited for ``throw-away programming'' and rapid prototyping.
|
|
|
|
Its syntax is put together from constructs borrowed from a variety of
|
|
|
|
other languages; most prominent are influences from ABC, C, Modula-3
|
|
|
|
and Icon.
|
1991-11-21 14:53:03 +01:00
|
|
|
|
|
|
|
The Python interpreter is easily extended with new functions and data
|
|
|
|
types implemented in C. Python is also suitable as an extension
|
|
|
|
language for highly customizable C applications such as editors or
|
|
|
|
window managers.
|
|
|
|
|
|
|
|
Python is available for various operating systems, amongst which
|
|
|
|
several flavors of {\UNIX}, Amoeba, the Apple Macintosh O.S.,
|
|
|
|
and MS-DOS.
|
|
|
|
|
|
|
|
This reference manual describes the syntax and ``core semantics'' of
|
1992-01-20 18:10:21 +01:00
|
|
|
the language. It is terse, but attempts to be exact and complete.
|
|
|
|
The semantics of non-essential built-in object types and of the
|
|
|
|
built-in functions and modules are described in the {\em Python
|
|
|
|
Library Reference}. For an informal introduction to the language, see
|
|
|
|
the {\em Python Tutorial}.
|
1991-11-21 14:53:03 +01:00
|
|
|
|
|
|
|
\end{abstract}
|
|
|
|
|
|
|
|
\pagebreak
|
|
|
|
|
1992-01-17 15:03:20 +01:00
|
|
|
{
|
|
|
|
\parskip = 0mm
|
1991-11-21 14:53:03 +01:00
|
|
|
\tableofcontents
|
1992-01-17 15:03:20 +01:00
|
|
|
}
|
1991-11-21 14:53:03 +01:00
|
|
|
|
|
|
|
\pagebreak
|
|
|
|
|
|
|
|
\pagenumbering{arabic}
|
|
|
|
|
1992-08-14 11:20:21 +02:00
|
|
|
\include{ref1} % Introduction
|
|
|
|
\include{ref2} % Lexical analysis
|
|
|
|
\include{ref3} % Data model
|
|
|
|
\include{ref4} % Execution model
|
|
|
|
\include{ref5} % Expressions and conditions
|
|
|
|
\include{ref6} % Simple statements
|
|
|
|
\include{ref7} % Compound statements
|
|
|
|
\include{ref8} % Top-level components
|
1992-08-19 18:54:06 +02:00
|
|
|
|
|
|
|
\input{ref.ind}
|
1992-03-06 11:52:59 +01:00
|
|
|
|
1991-11-21 14:53:03 +01:00
|
|
|
\end{document}
|