Python Language Reference ManualGuido van Rossum Fred L. Drake, Jr., editor Python Software Foundation November 2006 (Release 2.5)Copyright © 2001-2006 Python Software Foundation. All rights reserved. Copyright © 2000 BeOpen.com. All rights reserved. Copyright © 1995-2000 Corporation for National Research Initiatives. All rights reserved. Copyright © 1991-1995 Stichting Mathematisch Centrum. All rights reserved. |
See the end of this document for complete license and permissions information.
- Publisher's Preface
- Overview
- 1 Introduction
- 2 Lexical analysis
- 3 Data model
- 3.1 Objects, values and types
- 3.2 The standard type hierarchy
- 3.3 New-style and classic classes
- 3.4 Special method names
- 3.4.1 Basic customization
- 3.4.2 Customizing attribute access
- 3.4.3 Customizing class creation
- 3.4.4 Emulating callable objects
- 3.4.5 Emulating container types
- 3.4.6 Additional methods for emulation of sequence types
- 3.4.7 Emulating numeric types
- 3.4.8 Coercion rules
- 3.4.9 With Statement Context Managers
- 4 Execution model
- 5 Expressions
- 5.1 Arithmetic conversions
- 5.2 Atoms
- 5.3 Primaries
- 5.4 The power operator
- 5.5 Unary arithmetic operations
- 5.6 Binary arithmetic operations
- 5.7 Shifting operations
- 5.8 Binary bit-wise operations
- 5.9 Comparisons
- 5.10 Boolean operations
- 5.11 Lambdas
- 5.12 Expression lists
- 5.13 Evaluation order
- 5.14 Summary
- 6 Simple statements
- 6.1 Expression statements
- 6.2 Assert statements
- 6.3 Assignment statements
- 6.4 The
passstatement - 6.5 The
delstatement - 6.6 The
printstatement - 6.7 The
returnstatement - 6.8 The
yieldstatement - 6.9 The
raisestatement - 6.10 The
breakstatement - 6.11 The
continuestatement - 6.12 The
importstatement - 6.13 The
globalstatement - 6.14 The
execstatement
- 7 Compound statements
- 8 Top-level components
- 9 History and License
| ISBN 0954161785 | Python Language Reference Manual | See the print edition |