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 |
Fred Drake | f8e4415 | 1998-05-07 17:27:32 +0000 | [diff] [blame] | 19 | that bridges the gap between \C{} and shell programming, and is thus |
Fred Drake | f666917 | 1998-05-06 19:52:49 +0000 | [diff] [blame] | 20 | ideally suited for ``throw-away programming'' and rapid prototyping. |
| 21 | Its syntax is put together from constructs borrowed from a variety of |
Fred Drake | f8e4415 | 1998-05-07 17:27:32 +0000 | [diff] [blame] | 22 | other languages; most prominent are influences from \ABC, \C, Modula-3 |
Fred Drake | f666917 | 1998-05-06 19:52:49 +0000 | [diff] [blame] | 23 | and Icon. |
| 24 | |
| 25 | The Python interpreter is easily extended with new functions and data |
Fred Drake | f8e4415 | 1998-05-07 17:27:32 +0000 | [diff] [blame] | 26 | types implemented in \C{}. Python is also suitable as an extension |
Fred Drake | f666917 | 1998-05-06 19:52:49 +0000 | [diff] [blame] | 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 |
Fred Drake | f8e4415 | 1998-05-07 17:27:32 +0000 | [diff] [blame] | 31 | several flavors of \UNIX{} (including Linux), the Apple Macintosh O.S., |
Fred Drake | f666917 | 1998-05-06 19:52:49 +0000 | [diff] [blame] | 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 |
Fred Drake | f8e4415 | 1998-05-07 17:27:32 +0000 | [diff] [blame] | 37 | built-in functions and modules are described in the \emph{Python |
Fred Drake | f666917 | 1998-05-06 19:52:49 +0000 | [diff] [blame] | 38 | Library Reference}. For an informal introduction to the language, see |
Fred Drake | f8e4415 | 1998-05-07 17:27:32 +0000 | [diff] [blame] | 39 | the \emph{Python Tutorial}. |
Fred Drake | f666917 | 1998-05-06 19:52:49 +0000 | [diff] [blame] | 40 | |
| 41 | \end{abstract} |
| 42 | |
| 43 | \tableofcontents |
| 44 | |
Fred Drake | f8e4415 | 1998-05-07 17:27:32 +0000 | [diff] [blame] | 45 | \input{ref1} % Introduction |
| 46 | \input{ref2} % Lexical analysis |
| 47 | \input{ref3} % Data model |
| 48 | \input{ref4} % Execution model |
| 49 | \input{ref5} % Expressions and conditions |
| 50 | \input{ref6} % Simple statements |
| 51 | \input{ref7} % Compound statements |
| 52 | \input{ref8} % Top-level components |
Fred Drake | f666917 | 1998-05-06 19:52:49 +0000 | [diff] [blame] | 53 | |
| 54 | \input{ref.ind} |
| 55 | |
| 56 | \end{document} |