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 | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 3 | \title{Python Reference Manual} |
Guido van Rossum | 862c6f1 | 1992-01-29 14:47:05 +0000 | [diff] [blame] | 4 | |
Guido van Rossum | f2612d1 | 1991-11-21 13:53:03 +0000 | [diff] [blame] | 5 | \author{ |
| 6 | Guido van Rossum \\ |
Guido van Rossum | db65a6c | 1993-11-05 17:11:16 +0000 | [diff] [blame] | 7 | Dept. CST, CWI, P.O. Box 94079 \\ |
| 8 | 1090 GB Amsterdam, The Netherlands \\ |
Guido van Rossum | f2612d1 | 1991-11-21 13:53:03 +0000 | [diff] [blame] | 9 | E-mail: {\tt guido@cwi.nl} |
| 10 | } |
| 11 | |
Guido van Rossum | 16d6e71 | 1994-08-08 12:30:22 +0000 | [diff] [blame] | 12 | \date{14 July 1994 \\ Release 1.0.3} % XXX update before release! |
Guido van Rossum | 83eb962 | 1993-11-23 16:28:45 +0000 | [diff] [blame] | 13 | |
Guido van Rossum | b5e1c18 | 1992-03-06 10:52:59 +0000 | [diff] [blame] | 14 | % Tell \index to actually write the .idx file |
| 15 | \makeindex |
| 16 | |
Guido van Rossum | f2612d1 | 1991-11-21 13:53:03 +0000 | [diff] [blame] | 17 | \begin{document} |
| 18 | |
| 19 | \pagenumbering{roman} |
| 20 | |
| 21 | \maketitle |
| 22 | |
| 23 | \begin{abstract} |
| 24 | |
| 25 | \noindent |
Guido van Rossum | 0f1f9da | 1992-01-20 17:10:21 +0000 | [diff] [blame] | 26 | Python is a simple, yet powerful, interpreted programming language |
| 27 | that bridges the gap between C and shell programming, and is thus |
| 28 | ideally suited for ``throw-away programming'' and rapid prototyping. |
| 29 | Its syntax is put together from constructs borrowed from a variety of |
| 30 | other languages; most prominent are influences from ABC, C, Modula-3 |
| 31 | and Icon. |
Guido van Rossum | f2612d1 | 1991-11-21 13:53:03 +0000 | [diff] [blame] | 32 | |
| 33 | The Python interpreter is easily extended with new functions and data |
| 34 | types implemented in C. Python is also suitable as an extension |
| 35 | language for highly customizable C applications such as editors or |
| 36 | window managers. |
| 37 | |
| 38 | Python is available for various operating systems, amongst which |
| 39 | several flavors of {\UNIX}, Amoeba, the Apple Macintosh O.S., |
| 40 | and MS-DOS. |
| 41 | |
| 42 | This reference manual describes the syntax and ``core semantics'' of |
Guido van Rossum | 0f1f9da | 1992-01-20 17:10:21 +0000 | [diff] [blame] | 43 | the language. It is terse, but attempts to be exact and complete. |
| 44 | The semantics of non-essential built-in object types and of the |
| 45 | built-in functions and modules are described in the {\em Python |
| 46 | Library Reference}. For an informal introduction to the language, see |
| 47 | the {\em Python Tutorial}. |
Guido van Rossum | f2612d1 | 1991-11-21 13:53:03 +0000 | [diff] [blame] | 48 | |
| 49 | \end{abstract} |
| 50 | |
| 51 | \pagebreak |
| 52 | |
Guido van Rossum | 670e5a0 | 1992-01-17 14:03:20 +0000 | [diff] [blame] | 53 | { |
| 54 | \parskip = 0mm |
Guido van Rossum | f2612d1 | 1991-11-21 13:53:03 +0000 | [diff] [blame] | 55 | \tableofcontents |
Guido van Rossum | 670e5a0 | 1992-01-17 14:03:20 +0000 | [diff] [blame] | 56 | } |
Guido van Rossum | f2612d1 | 1991-11-21 13:53:03 +0000 | [diff] [blame] | 57 | |
| 58 | \pagebreak |
| 59 | |
| 60 | \pagenumbering{arabic} |
| 61 | |
Guido van Rossum | 2670a16 | 1992-08-14 09:20:21 +0000 | [diff] [blame] | 62 | \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 Rossum | 0e389af | 1992-08-19 16:54:06 +0000 | [diff] [blame] | 70 | |
| 71 | \input{ref.ind} |
Guido van Rossum | b5e1c18 | 1992-03-06 10:52:59 +0000 | [diff] [blame] | 72 | |
Guido van Rossum | f2612d1 | 1991-11-21 13:53:03 +0000 | [diff] [blame] | 73 | \end{document} |