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 |
Guido van Rossum | dc1dab1 | 1998-06-15 16:27:09 +0000 | [diff] [blame] | 18 | Python is an interpreted, object-oriented, high-level programming |
| 19 | language with dynamic semantics. Its high-level built in data |
| 20 | structures, combined with dynamic typing and dynamic binding, make it |
| 21 | very attractive for rapid application development, as well as for use |
| 22 | as a scripting or glue language to connect existing components |
| 23 | together. Python's simple, easy to learn syntax emphasizes |
| 24 | readability and therefore reduces the cost of program |
| 25 | maintenance. Python supports modules and packages, which encourages |
| 26 | program modularity and code reuse. The Python interpreter and the |
| 27 | extensive standard library are available in source or binary form |
| 28 | without charge for all major platforms, and can be freely distributed. |
Fred Drake | f666917 | 1998-05-06 19:52:49 +0000 | [diff] [blame] | 29 | |
| 30 | This reference manual describes the syntax and ``core semantics'' of |
Guido van Rossum | dc1dab1 | 1998-06-15 16:27:09 +0000 | [diff] [blame] | 31 | the language. It is terse, but attempts to be exact and complete. The |
| 32 | semantics of non-essential built-in object types and of the built-in |
| 33 | functions and modules are described in the \emph{Python Library |
| 34 | Reference}. For an informal introduction to the language, see the |
| 35 | \emph{Python Tutorial}. For \C{} or \Cpp{} programmers, two additional |
| 36 | manuals exist: \emph{Extending and Embedding the Python Interpreter} |
| 37 | describes the high-level picture of how to write a Python extension |
| 38 | module, and the \emph{Python/C API Reference Manual} describes the |
| 39 | interfaces available to C/C++ programmers in detail. |
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} |