Guido van Rossum | 55dd113 | 1995-03-17 15:59:41 +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 | 16cd7f9 | 1994-10-06 10:29:26 +0000 | [diff] [blame] | 5 | \input{boilerplate} |
Guido van Rossum | 83eb962 | 1993-11-23 16:28:45 +0000 | [diff] [blame] | 6 | |
Guido van Rossum | b5e1c18 | 1992-03-06 10:52:59 +0000 | [diff] [blame] | 7 | % Tell \index to actually write the .idx file |
| 8 | \makeindex |
| 9 | |
Guido van Rossum | f2612d1 | 1991-11-21 13:53:03 +0000 | [diff] [blame] | 10 | \begin{document} |
| 11 | |
| 12 | \pagenumbering{roman} |
| 13 | |
| 14 | \maketitle |
| 15 | |
Guido van Rossum | 16cd7f9 | 1994-10-06 10:29:26 +0000 | [diff] [blame] | 16 | \input{copyright} |
| 17 | |
Guido van Rossum | f2612d1 | 1991-11-21 13:53:03 +0000 | [diff] [blame] | 18 | \begin{abstract} |
| 19 | |
| 20 | \noindent |
Guido van Rossum | 0f1f9da | 1992-01-20 17:10:21 +0000 | [diff] [blame] | 21 | Python is a simple, yet powerful, interpreted programming language |
| 22 | that bridges the gap between C and shell programming, and is thus |
| 23 | ideally suited for ``throw-away programming'' and rapid prototyping. |
| 24 | Its syntax is put together from constructs borrowed from a variety of |
| 25 | other languages; most prominent are influences from ABC, C, Modula-3 |
| 26 | and Icon. |
Guido van Rossum | f2612d1 | 1991-11-21 13:53:03 +0000 | [diff] [blame] | 27 | |
| 28 | The Python interpreter is easily extended with new functions and data |
| 29 | types implemented in C. Python is also suitable as an extension |
| 30 | language for highly customizable C applications such as editors or |
| 31 | window managers. |
| 32 | |
| 33 | Python is available for various operating systems, amongst which |
| 34 | several flavors of {\UNIX}, Amoeba, the Apple Macintosh O.S., |
| 35 | and MS-DOS. |
| 36 | |
| 37 | This reference manual describes the syntax and ``core semantics'' of |
Guido van Rossum | 0f1f9da | 1992-01-20 17:10:21 +0000 | [diff] [blame] | 38 | the language. It is terse, but attempts to be exact and complete. |
| 39 | The semantics of non-essential built-in object types and of the |
| 40 | built-in functions and modules are described in the {\em Python |
| 41 | Library Reference}. For an informal introduction to the language, see |
| 42 | the {\em Python Tutorial}. |
Guido van Rossum | f2612d1 | 1991-11-21 13:53:03 +0000 | [diff] [blame] | 43 | |
| 44 | \end{abstract} |
| 45 | |
| 46 | \pagebreak |
| 47 | |
Guido van Rossum | 670e5a0 | 1992-01-17 14:03:20 +0000 | [diff] [blame] | 48 | { |
| 49 | \parskip = 0mm |
Guido van Rossum | f2612d1 | 1991-11-21 13:53:03 +0000 | [diff] [blame] | 50 | \tableofcontents |
Guido van Rossum | 670e5a0 | 1992-01-17 14:03:20 +0000 | [diff] [blame] | 51 | } |
Guido van Rossum | f2612d1 | 1991-11-21 13:53:03 +0000 | [diff] [blame] | 52 | |
| 53 | \pagebreak |
| 54 | |
| 55 | \pagenumbering{arabic} |
| 56 | |
Guido van Rossum | 2670a16 | 1992-08-14 09:20:21 +0000 | [diff] [blame] | 57 | \include{ref1} % Introduction |
| 58 | \include{ref2} % Lexical analysis |
| 59 | \include{ref3} % Data model |
| 60 | \include{ref4} % Execution model |
| 61 | \include{ref5} % Expressions and conditions |
| 62 | \include{ref6} % Simple statements |
| 63 | \include{ref7} % Compound statements |
| 64 | \include{ref8} % Top-level components |
Guido van Rossum | 0e389af | 1992-08-19 16:54:06 +0000 | [diff] [blame] | 65 | |
| 66 | \input{ref.ind} |
Guido van Rossum | b5e1c18 | 1992-03-06 10:52:59 +0000 | [diff] [blame] | 67 | |
Guido van Rossum | f2612d1 | 1991-11-21 13:53:03 +0000 | [diff] [blame] | 68 | \end{document} |