blob: 9fb37b6e3daa978b8e5fc4dd808d3de78467d1b5 [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 Rossum6938f061994-08-01 12:22:53 +00003\title{Python Reference Manual}
Guido van Rossum862c6f11992-01-29 14:47:05 +00004
Guido van Rossumf2612d11991-11-21 13:53:03 +00005\author{
6 Guido van Rossum \\
Guido van Rossumdb65a6c1993-11-05 17:11:16 +00007 Dept. CST, CWI, P.O. Box 94079 \\
8 1090 GB Amsterdam, The Netherlands \\
Guido van Rossumf2612d11991-11-21 13:53:03 +00009 E-mail: {\tt guido@cwi.nl}
10}
11
Guido van Rossum16d6e711994-08-08 12:30:22 +000012\date{14 July 1994 \\ Release 1.0.3} % XXX update before release!
Guido van Rossum83eb9621993-11-23 16:28:45 +000013
Guido van Rossumb5e1c181992-03-06 10:52:59 +000014% Tell \index to actually write the .idx file
15\makeindex
16
Guido van Rossumf2612d11991-11-21 13:53:03 +000017\begin{document}
18
19\pagenumbering{roman}
20
21\maketitle
22
23\begin{abstract}
24
25\noindent
Guido van Rossum0f1f9da1992-01-20 17:10:21 +000026Python is a simple, yet powerful, interpreted programming language
27that bridges the gap between C and shell programming, and is thus
28ideally suited for ``throw-away programming'' and rapid prototyping.
29Its syntax is put together from constructs borrowed from a variety of
30other languages; most prominent are influences from ABC, C, Modula-3
31and Icon.
Guido van Rossumf2612d11991-11-21 13:53:03 +000032
33The Python interpreter is easily extended with new functions and data
34types implemented in C. Python is also suitable as an extension
35language for highly customizable C applications such as editors or
36window managers.
37
38Python is available for various operating systems, amongst which
39several flavors of {\UNIX}, Amoeba, the Apple Macintosh O.S.,
40and MS-DOS.
41
42This reference manual describes the syntax and ``core semantics'' of
Guido van Rossum0f1f9da1992-01-20 17:10:21 +000043the language. It is terse, but attempts to be exact and complete.
44The semantics of non-essential built-in object types and of the
45built-in functions and modules are described in the {\em Python
46Library Reference}. For an informal introduction to the language, see
47the {\em Python Tutorial}.
Guido van Rossumf2612d11991-11-21 13:53:03 +000048
49\end{abstract}
50
51\pagebreak
52
Guido van Rossum670e5a01992-01-17 14:03:20 +000053{
54\parskip = 0mm
Guido van Rossumf2612d11991-11-21 13:53:03 +000055\tableofcontents
Guido van Rossum670e5a01992-01-17 14:03:20 +000056}
Guido van Rossumf2612d11991-11-21 13:53:03 +000057
58\pagebreak
59
60\pagenumbering{arabic}
61
Guido van Rossum2670a161992-08-14 09:20:21 +000062\include{ref1} % Introduction
63\include{ref2} % Lexical analysis
64\include{ref3} % Data model
65\include{ref4} % Execution model
66\include{ref5} % Expressions and conditions
67\include{ref6} % Simple statements
68\include{ref7} % Compound statements
69\include{ref8} % Top-level components
Guido van Rossum0e389af1992-08-19 16:54:06 +000070
71\input{ref.ind}
Guido van Rossumb5e1c181992-03-06 10:52:59 +000072
Guido van Rossumf2612d11991-11-21 13:53:03 +000073\end{document}