Fred Drake | f666917 | 1998-05-06 19:52:49 +0000 | [diff] [blame^] | 1 | \documentclass{manual} |
| 2 | |
| 3 | \title{Python Reference Manual} |
| 4 | |
| 5 | \input{boilerplate} |
| 6 | |
| 7 | \makeindex |
| 8 | |
| 9 | \begin{document} |
| 10 | |
| 11 | \maketitle |
| 12 | |
| 13 | \input{copyright} |
| 14 | |
| 15 | \begin{abstract} |
| 16 | |
| 17 | \noindent |
| 18 | Python is a simple, yet powerful, interpreted programming language |
| 19 | that bridges the gap between C and shell programming, and is thus |
| 20 | ideally suited for ``throw-away programming'' and rapid prototyping. |
| 21 | Its syntax is put together from constructs borrowed from a variety of |
| 22 | other languages; most prominent are influences from ABC, C, Modula-3 |
| 23 | and Icon. |
| 24 | |
| 25 | The Python interpreter is easily extended with new functions and data |
| 26 | types implemented in C. Python is also suitable as an extension |
| 27 | language for highly customizable C applications such as editors or |
| 28 | window managers. |
| 29 | |
| 30 | Python is available for various operating systems, amongst which |
| 31 | several flavors of {\UNIX} (including Linux), the Apple Macintosh O.S., |
| 32 | MS-DOS, MS-Windows 3.1, Windows NT, and OS/2. |
| 33 | |
| 34 | This reference manual describes the syntax and ``core semantics'' of |
| 35 | the language. It is terse, but attempts to be exact and complete. |
| 36 | The semantics of non-essential built-in object types and of the |
| 37 | built-in functions and modules are described in the {\em Python |
| 38 | Library Reference}. For an informal introduction to the language, see |
| 39 | the {\em Python Tutorial}. |
| 40 | |
| 41 | \end{abstract} |
| 42 | |
| 43 | \tableofcontents |
| 44 | |
| 45 | \include{ref1} % Introduction |
| 46 | \include{ref2} % Lexical analysis |
| 47 | \include{ref3} % Data model |
| 48 | \include{ref4} % Execution model |
| 49 | \include{ref5} % Expressions and conditions |
| 50 | \include{ref6} % Simple statements |
| 51 | \include{ref7} % Compound statements |
| 52 | \include{ref8} % Top-level components |
| 53 | |
| 54 | \input{ref.ind} |
| 55 | |
| 56 | \end{document} |