Guido van Rossum | 3795378 | 1992-04-06 14:04:04 +0000 | [diff] [blame] | 1 | \documentstyle[twoside,11pt,myformat]{report} |
Guido van Rossum | f2612d1 | 1991-11-21 13:53:03 +0000 | [diff] [blame] | 2 | |
Guido van Rossum | 862c6f1 | 1992-01-29 14:47:05 +0000 | [diff] [blame] | 3 | \title{\bf Python Reference Manual} |
| 4 | |
Guido van Rossum | f2612d1 | 1991-11-21 13:53:03 +0000 | [diff] [blame] | 5 | \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 Rossum | b5e1c18 | 1992-03-06 10:52:59 +0000 | [diff] [blame] | 12 | % Tell \index to actually write the .idx file |
| 13 | \makeindex |
| 14 | |
Guido van Rossum | f2612d1 | 1991-11-21 13:53:03 +0000 | [diff] [blame] | 15 | \begin{document} |
| 16 | |
| 17 | \pagenumbering{roman} |
| 18 | |
| 19 | \maketitle |
| 20 | |
| 21 | \begin{abstract} |
| 22 | |
| 23 | \noindent |
Guido van Rossum | 0f1f9da | 1992-01-20 17:10:21 +0000 | [diff] [blame] | 24 | Python is a simple, yet powerful, interpreted programming language |
| 25 | that bridges the gap between C and shell programming, and is thus |
| 26 | ideally suited for ``throw-away programming'' and rapid prototyping. |
| 27 | Its syntax is put together from constructs borrowed from a variety of |
| 28 | other languages; most prominent are influences from ABC, C, Modula-3 |
| 29 | and Icon. |
Guido van Rossum | f2612d1 | 1991-11-21 13:53:03 +0000 | [diff] [blame] | 30 | |
| 31 | The Python interpreter is easily extended with new functions and data |
| 32 | types implemented in C. Python is also suitable as an extension |
| 33 | language for highly customizable C applications such as editors or |
| 34 | window managers. |
| 35 | |
| 36 | Python is available for various operating systems, amongst which |
| 37 | several flavors of {\UNIX}, Amoeba, the Apple Macintosh O.S., |
| 38 | and MS-DOS. |
| 39 | |
| 40 | This reference manual describes the syntax and ``core semantics'' of |
Guido van Rossum | 0f1f9da | 1992-01-20 17:10:21 +0000 | [diff] [blame] | 41 | the language. It is terse, but attempts to be exact and complete. |
| 42 | The semantics of non-essential built-in object types and of the |
| 43 | built-in functions and modules are described in the {\em Python |
| 44 | Library Reference}. For an informal introduction to the language, see |
| 45 | the {\em Python Tutorial}. |
Guido van Rossum | f2612d1 | 1991-11-21 13:53:03 +0000 | [diff] [blame] | 46 | |
| 47 | \end{abstract} |
| 48 | |
| 49 | \pagebreak |
| 50 | |
Guido van Rossum | 670e5a0 | 1992-01-17 14:03:20 +0000 | [diff] [blame] | 51 | { |
| 52 | \parskip = 0mm |
Guido van Rossum | f2612d1 | 1991-11-21 13:53:03 +0000 | [diff] [blame] | 53 | \tableofcontents |
Guido van Rossum | 670e5a0 | 1992-01-17 14:03:20 +0000 | [diff] [blame] | 54 | } |
Guido van Rossum | f2612d1 | 1991-11-21 13:53:03 +0000 | [diff] [blame] | 55 | |
| 56 | \pagebreak |
| 57 | |
| 58 | \pagenumbering{arabic} |
| 59 | |
Guido van Rossum | 2670a16 | 1992-08-14 09:20:21 +0000 | [diff] [blame] | 60 | \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 Rossum | abff0fd | 1992-08-14 09:18:02 +0000 | [diff] [blame] | 68 | \inclide{ref.ind} |
Guido van Rossum | b5e1c18 | 1992-03-06 10:52:59 +0000 | [diff] [blame] | 69 | |
Guido van Rossum | f2612d1 | 1991-11-21 13:53:03 +0000 | [diff] [blame] | 70 | \end{document} |