Next:
Introduction
Up:
Python Reference Manual
Previous:
Python Reference Manual
Contents
Contents
Introduction
Notation
Lexical analysis
Line structure
Comments
Explicit line joining
Implicit line joining
Blank lines
Indentation
Other tokens
Identifiers
Keywords
Literals
String literals
Numeric literals
Operators
Delimiters
Data model
Objects, values and types
The standard type hierarchy
Special method names
Special methods for any type
Special methods for sequence and mapping types
Special methods for sequence types
Special methods for numeric types
Execution model
Code blocks, execution frames, and name spaces
Exceptions
Expressions and conditions
Arithmetic conversions
Atoms
Identifiers (Names)
Literals
Parenthesized forms
List displays
Dictionary displays
String conversions
Primaries
Attribute references
Subscriptions
Slicings
Calls
Unary arithmetic operations
Binary arithmetic operations
Shifting operations
Binary bit-wise operations
Comparisons
Boolean operations
Expression lists and condition lists
Simple statements
Expression statements
Assignment statements
The
pass
statement
The
del
statement
The
print
statement
The
return
statement
The
raise
statement
The
break
statement
The
continue
statement
The
import
statement
The
global
statement
The
access
statement
The
exec
statement
Compound statements
The
if
statement
The
while
statement
The
for
statement
The
try
statement
Function definitions
Class definitions
Top-level components
Complete Python programs
File input
Interactive input
Expression input
Index
About this document ...