blob: cf7d30a80e09d3f5a1cbc5d84de819ee3f30ce32 [file] [log] [blame]
Guido van Rossum37953781992-04-06 14:04:04 +00001\documentstyle[twoside,11pt,myformat]{report}
Guido van Rossumf2612d11991-11-21 13:53:03 +00002
Guido van Rossum862c6f11992-01-29 14:47:05 +00003\title{\bf Python Reference Manual}
4
Guido van Rossumf2612d11991-11-21 13:53:03 +00005\author{
6 Guido van Rossum \\
7 Dept. CST, CWI, Kruislaan 413 \\
8 1098 SJ Amsterdam, The Netherlands \\
9 E-mail: {\tt guido@cwi.nl}
10}
11
Guido van Rossumb5e1c181992-03-06 10:52:59 +000012% Tell \index to actually write the .idx file
13\makeindex
14
Guido van Rossumf2612d11991-11-21 13:53:03 +000015\begin{document}
16
17\pagenumbering{roman}
18
19\maketitle
20
21\begin{abstract}
22
23\noindent
Guido van Rossum0f1f9da1992-01-20 17:10:21 +000024Python is a simple, yet powerful, interpreted programming language
25that bridges the gap between C and shell programming, and is thus
26ideally suited for ``throw-away programming'' and rapid prototyping.
27Its syntax is put together from constructs borrowed from a variety of
28other languages; most prominent are influences from ABC, C, Modula-3
29and Icon.
Guido van Rossumf2612d11991-11-21 13:53:03 +000030
31The Python interpreter is easily extended with new functions and data
32types implemented in C. Python is also suitable as an extension
33language for highly customizable C applications such as editors or
34window managers.
35
36Python is available for various operating systems, amongst which
37several flavors of {\UNIX}, Amoeba, the Apple Macintosh O.S.,
38and MS-DOS.
39
40This reference manual describes the syntax and ``core semantics'' of
Guido van Rossum0f1f9da1992-01-20 17:10:21 +000041the language. It is terse, but attempts to be exact and complete.
42The semantics of non-essential built-in object types and of the
43built-in functions and modules are described in the {\em Python
44Library Reference}. For an informal introduction to the language, see
45the {\em Python Tutorial}.
Guido van Rossumf2612d11991-11-21 13:53:03 +000046
47\end{abstract}
48
49\pagebreak
50
Guido van Rossum670e5a01992-01-17 14:03:20 +000051{
52\parskip = 0mm
Guido van Rossumf2612d11991-11-21 13:53:03 +000053\tableofcontents
Guido van Rossum670e5a01992-01-17 14:03:20 +000054}
Guido van Rossumf2612d11991-11-21 13:53:03 +000055
56\pagebreak
57
58\pagenumbering{arabic}
59
Guido van Rossum2670a161992-08-14 09:20:21 +000060\include{ref1} % Introduction
61\include{ref2} % Lexical analysis
62\include{ref3} % Data model
63\include{ref4} % Execution model
64\include{ref5} % Expressions and conditions
65\include{ref6} % Simple statements
66\include{ref7} % Compound statements
67\include{ref8} % Top-level components
Guido van Rossum0e389af1992-08-19 16:54:06 +000068
69\input{ref.ind}
Guido van Rossumb5e1c181992-03-06 10:52:59 +000070
Guido van Rossumf2612d11991-11-21 13:53:03 +000071\end{document}