Next: About this document Up: Python Reference Manual Previous: Expression input

Index

ASCII
Notation, String literals, String literals, Delimiters, The standard type , The standard type
BNF
Notation, Expressions and conditions
Boolean operation
Boolean operations
C
String literals, The standard type , The standard type , The standard type , The standard type , Comparisons
DEDENT token
Indentation, Compound statements
EBCDIC
The standard type
INDENT token
Indentation
ImportError exception
The import statement, The import statement
NEWLINE token
Line structure, Compound statements
NameError exception
Identifiers (Names)
None
The standard type , Expression statements
None@None object
The standard type
Pascal
The for statement
RuntimeError exception
The print statement
Standard C
String literals
SyntaxError exception
The import statement
TypeError exception
Arithmetic conversions, Dictionary displays, Unary arithmetic operations
UNIX
Complete Python programs
ValueError exception
Shifting operations
ZeroDivisionError exception
Binary arithmetic operations
__bases__
The standard type
__builtin__ (built-in module)
Complete Python programs
__class__
The standard type
__dict__
The standard type , The standard type , The standard type
__main__ (built-in module)
Complete Python programs
__members__
The standard type
__methods__
The standard type
__name__
The standard type
access statement
The access statement
actual, parameter
Function definitions
addition
Binary arithmetic operations
and operator
Boolean operations
and, bit-wise
Binary bit-wise operations
anonmymous function
Boolean operations
argument
Function definitions
argument, function
The standard type
arithmetic conversion
Arithmetic conversions
arithmetic operation, binary
Binary arithmetic operations
arithmetic operation, unary
Unary arithmetic operations
assignment statement
The standard type , Expressions and conditions, Assignment statements
assignment, attribute
Assignment statements, Assignment statements
assignment, class attribute
The standard type
assignment, class instance attribute
The standard type
assignment, slicing
Assignment statements
assignment, subscription
Assignment statements
assignment, target list
Assignment statements
atom
Atoms
attribute
The standard type
attribute assignment
Assignment statements, Assignment statements
attribute assignment, class
The standard type
attribute assignment, class instance
The standard type
attribute deletion
The del statement
attribute reference
Attribute references
attribute, class
The standard type
attribute, class instance
The standard type
attribute, generic special
The standard type
attribute, special
The standard type
backslash character
Explicit line joining
binary arithmetic operation
Binary arithmetic operations
binary bit-wise operation
Binary bit-wise operations
binding name
Code blocksexecution , Assignment statements
binding, global name
The global statement
binding, name
Identifiers (Names), The import statement, The import statement, Function definitions, Class definitions
bit-wise and
Binary bit-wise operations
bit-wise operation, binary
Binary bit-wise operations
bit-wise operation, unary
Unary arithmetic operations
bit-wise or
Binary bit-wise operations
bit-wise xor
Binary bit-wise operations
blank line
Blank lines
block, code
Code blocksexecution
break statement
The break statement, The while statement, The for statement, The try statement
built-in function call
Calls
built-in function object
The standard type , Calls
built-in method
The standard type
built-in method call
Calls
built-in method object
The standard type , Calls
built-in module
The import statement
built-in name
Identifiers (Names)
byte
The standard type
call
Calls
call, built-in function
Calls
call, built-in method
Calls
call, class instance
Calls
call, class object
The standard type , The standard type , The standard type , Calls
call, function
The standard type , Calls, Calls, Function definitions
call, instance
Calls
call, method
Calls
call, procedure
Expression statements
call, user-defined function
Calls, Function definitions
callable object
The standard type , Calls
chaining comparisons
Comparisons
character
The standard type , Subscriptions
character set
The standard type
chr (standard module)
The standard type , The standard type
class attribute
The standard type
class attribute assignment
The standard type
class definition
The return statement, Class definitions
class instance
The standard type
class instance attribute
The standard type
class instance attribute assignment
The standard type
class instance call
Calls
class instance object
The standard type , The standard type , The standard type , Calls
class name
Class definitions
class object
The standard type , The standard type , Calls, Class definitions
class object call
The standard type , The standard type , The standard type , Calls
clause
Compound statements
co_code
The standard type
co_consts
The standard type
co_filename
The standard type
co_names
The standard type
code block
Code blocksexecution , Code blocksexecution , Code blocksexecution , Identifiers (Names), The import statement
code object
The standard type
comma
Expressions and conditions, Parenthesized forms
comma, trailing
Expression lists and , The print statement
command line
Complete Python programs
comment
Comments
comparison
Comparisons
comparison, string
The standard type
comparisons, chaining
Comparisons
compound statement
Compound statements
condition
Expressions and conditions
condition list
Expression lists and
constant
Literals
container
Objectsvalues and , The standard type
continue statement
The continue statement, The while statement, The for statement, The try statement
conversion, arithmetic
Arithmetic conversions
conversion, string
String conversions, Expression statements
dangling else
Compound statements
data
Objectsvalues and
data type
The standard type
data type, immutable
Literals
datum
Dictionary displays
decimal literal
Numeric literals
default parameter value
Function definitions
definition, class
The return statement, Class definitions
definition, function
The return statement, Function definitions
del statement
The standard type , The del statement
delete
The standard type
deletion target
The del statement
deletion target list
The del statement
deletion, attribute
The del statement
delimiters
Delimiters
dictionary display
Dictionary displays
dictionary object
The standard type , The standard type , Special methods for , Dictionary displays, Subscriptions, Assignment statements
display, dictionary
Dictionary displays
display, list
List displays
display, tuple
Parenthesized forms
division
Binary arithmetic operations
elif keyword
The if statement
else keyword
The break statement, The if statement, The while statement, The for statement, The try statement
else, dangling
Compound statements
empty list
List displays
empty tuple
The standard type , Parenthesized forms
error handling
Exceptions
errors
Exceptions
escape sequence
String literals
eval (standard module)
Expression input
exc_traceback
The standard type , The try statement
exc_type
The try statement
exc_value
The try statement
except keyword
The try statement
exception
Exceptions, The raise statement
exception handler
The standard type , Exceptions
exception, ImportError
The import statement, The import statement
exception, NameError
Identifiers (Names)
exception, RuntimeError
The print statement
exception, SyntaxError
The import statement
exception, TypeError
Arithmetic conversions, Dictionary displays, Unary arithmetic operations
exception, ValueError
Shifting operations
exception, ZeroDivisionError
Binary arithmetic operations
exception, raising
The raise statement
exclusive or
Binary bit-wise operations
exec statement
The exec statement
execution frame
Code blocksexecution , Code blocksexecution , Class definitions
execution model
Execution model
execution stack
The standard type
expression
Expressions and conditions
expression list
Expression lists and , Expression statements, Assignment statements
expression statement
Expression statements
expression, lambda
Boolean operations
extension module
The standard type
extension, filename
The import statement
f_back
The standard type
f_code
The standard type
f_globals
The standard type
f_lasti
The standard type
f_lineno
The standard type
f_locals
The standard type
file object
The standard type , Expression input
filename extension
The import statement
finally keyword
The return statement, The break statement, The continue statement, The try statement
floating point literal
Numeric literals
floating point number
The standard type , Arithmetic conversions
floating point object
The standard type
for statement
The break statement, The continue statement, The for statement
form, lambda
Boolean operations, Function definitions
formal, parameter
Function definitions
frame object
The standard type
frame, execution
Code blocksexecution , Code blocksexecution , Class definitions
from ... import *
The import statement
from keyword
The import statement, The import statement
func_code
The standard type
func_globals
The standard type
function argument
The standard type
function call
The standard type , Calls, Calls, Function definitions
function call, user-defined
Calls, Function definitions
function definition
The return statement, Function definitions
function name
Function definitions
function object
The standard type , The standard type , Calls, Calls, Function definitions
function, anonmymous
Boolean operations
function, user-defined
The standard type
garbage collection
Objectsvalues and
generic special attribute
The standard type
global name
Identifiers (Names)
global name binding
The global statement
global name space
The standard type , Code blocksexecution
global statement
Code blocksexecution , Identifiers (Names), Assignment statements, The del statement, The import statement, The global statement
grammar
Notation
grouping
Indentation
handle an exception
Exceptions
handler, exception
The standard type
hash character
Comments
hexadecimal literal
Numeric literals
hierarchy, type
The standard type
identifier
Identifiers, Identifiers (Names)
identity of an object
Objectsvalues and
identity test
Comparisons
if statement
The if statement
im_func
The standard type
im_self
The standard type
immutable data type
Literals
immutable object
Objectsvalues and , The standard type
immutable sequence object
The standard type
import statement
The standard type , The import statement
importing module
The import statement
in keyword
The for statement
in operator
Comparisons
inclusive or
Binary bit-wise operations
indentation
Indentation
index operation
The standard type
inheritance
Class definitions
initialization, module
The import statement
input
Expression input
input (standard module)
Expression input
input!raw
Expression input
instance call
Calls
instance object
The standard type , The standard type , The standard type , Calls
instance, class
The standard type
integer literal
Numeric literals
integer object
The standard type
integer representation
The standard type
integer, long
Arithmetic conversions
integer, plain
Arithmetic conversions
interactive mode
Complete Python programs
internal type
The standard type
interpreter
Top-level components
inversion
Unary arithmetic operations
invocation
The standard type
is not operator
Comparisons
is operator
Comparisons
item selection
The standard type
item, sequence
Subscriptions
item, string
Subscriptions
key
Dictionary displays
key/datum pair
Dictionary displays
keyword
Keywords
keyword, elif
The if statement
keyword, else
The break statement, The if statement, The while statement, The for statement, The try statement
keyword, except
The try statement
keyword, finally
The return statement, The break statement, The continue statement, The try statement
keyword, from
The import statement, The import statement
keyword, in
The for statement
lambda expression
Boolean operations
lambda form
Boolean operations, Function definitions
last_traceback
The standard type
leading whitespace
Indentation
len (standard module)
The standard type , The standard type
lexical analysis
Lexical analysis
lexical definitions
Notation
line continuation
Explicit line joining
line joining
Explicit line joining
line structure
Line structure
list assignment, target
Assignment statements
list display
List displays
list object
The standard type , List displays, Attribute references, Subscriptions, Slicings, Assignment statements
list, condition
Expression lists and
list, deletion target
The del statement
list, empty
List displays
list, expression
Expression lists and , Expression statements, Assignment statements
list, target
Assignment statements, The for statement
literal
Literals, Literals
local name space
Code blocksexecution
logical line
Line structure, Comments
long integer
Arithmetic conversions
long integer literal
Numeric literals
long integer object
The standard type
loop control target
The break statement
loop statement
The break statement, The continue statement, The while statement, The for statement
loop!over mutable sequence
The for statement
makefile (standard module)
The standard type
mapping object
The standard type , The standard type , Subscriptions, Assignment statements
membership test
Comparisons
method call
Calls
method object
The standard type , The standard type , Calls
method, built-in
The standard type
method, user-defined
The standard type
minus
Unary arithmetic operations
module initialization
The import statement
module name
The import statement
module name space
The standard type
module object
The standard type , Attribute references
module, built-in
The import statement
module, extension
The standard type
module, importing
The import statement
module, user-defined
The import statement
modules
The import statement
modulo
Binary arithmetic operations
multiplication
Binary arithmetic operations
mutable object
Objectsvalues and , The standard type , The standard type , Assignment statements, Assignment statements
mutable sequece object
The standard type
mutable sequence!loop over
The for statement
name
Identifiers, Identifiers (Names)
name binding
Identifiers (Names), The import statement, The import statement, Function definitions, Class definitions
name binding, global
The global statement
name space
Code blocksexecution , Code blocksexecution
name space, global
The standard type , Code blocksexecution
name space, local
Code blocksexecution
name space, module
The standard type
name, binding
Code blocksexecution , Assignment statements
name, built-in
Identifiers (Names)
name, class
Class definitions
name, function
Function definitions
name, global
Identifiers (Names)
name, module
The import statement
name, rebinding
Code blocksexecution , Assignment statements
name, unbinding
Code blocksexecution , The del statement
negation
Unary arithmetic operations
newline suppression
The print statement
not in operator
Comparisons
not operator
Boolean operations
notation
Notation
null operation
The pass statement
number
Numeric literals
number object
The standard type , The standard type
number, floating point
The standard type , Arithmetic conversions
numeric literal
Numeric literals
numeric object
The standard type
object
Objectsvalues and
object closure
The standard type
object, None@None
The standard type
object, built-in function
The standard type , Calls
object, built-in method
The standard type , Calls
object, callable
The standard type , Calls
object, class
The standard type , The standard type , Calls, Class definitions
object, class instance
The standard type , The standard type , The standard type , Calls
object, code
The standard type
object, dictionary
The standard type , The standard type , Special methods for , Dictionary displays, Subscriptions, Assignment statements
object, file
The standard type , Expression input
object, floating point
The standard type
object, frame
The standard type
object, function
The standard type , The standard type , Calls, Calls, Function definitions
object, immutable
The standard type
object, immutable sequence
The standard type
object, instance
The standard type , The standard type , The standard type , Calls
object, integer
The standard type
object, list
The standard type , List displays, Attribute references, Subscriptions, Slicings, Assignment statements
object, long integer
The standard type
object, mapping
The standard type , The standard type , Subscriptions, Assignment statements
object, method
The standard type , The standard type , Calls
object, module
The standard type , Attribute references
object, mutable
The standard type , The standard type , Assignment statements, Assignment statements
object, mutable sequece
The standard type
object, number
The standard type , The standard type
object, numeric
The standard type
object, plain integer
The standard type
object, recursive
String conversions
object, seqence
The standard type
object, sequence
The standard type , Subscriptions, Slicings, Comparisons, Assignment statements, The for statement
object, string
The standard type , Subscriptions, Slicings
object, traceback
The standard type , The try statement
object, tuple
The standard type , Subscriptions, Slicings, Expression lists and
object, user-defined function
The standard type , Calls, Function definitions
object, user-defined method
The standard type
octal literal
Numeric literals
open (standard module)
The standard type
operation, Boolean
Boolean operations
operation, binary arithmetic
Binary arithmetic operations
operation, binary bit-wise
Binary bit-wise operations
operation, null
The pass statement
operation, shifting
Shifting operations
operation, unary arithmetic
Unary arithmetic operations
operation, unary bit-wise
Unary arithmetic operations
operator, and
Boolean operations
operator, in
Comparisons
operator, is
Comparisons
operator, is not
Comparisons
operator, not
Boolean operations
operator, not in
Comparisons
operator, or
Boolean operations
operators
Operators
or operator
Boolean operations
or, bit-wise
Binary bit-wise operations
or, exclusive
Binary bit-wise operations
or, inclusive
Binary bit-wise operations
ord (standard module)
The standard type , The standard type
output
Expression statements, The print statement
output, standard
Expression statements, The print statement
parameter
Function definitions
parameter actual
Function definitions
parameter formal
Function definitions
parameter list, variable length
Function definitions
parameter value, default
Function definitions
parenthesized form
Parenthesized forms
parser
Lexical analysis
pass statement
The pass statement
path
The import statement
physical line
Comments, Explicit line joining, String literals
plain integer
Arithmetic conversions
plain integer literal
Numeric literals
plain integer object
The standard type
plus
Unary arithmetic operations
popen (standard module)
The standard type
primary
Primaries
print statement
The print statement
procedure call
Expression statements
program
Complete Python programs
raise an exception
Exceptions
raise statement
The raise statement
raising exception
The raise statement
range (standard module)
The for statement
raw input
Expression input
raw_index (standard module)
Expression input
readline
Expression input
rebinding name
Code blocksexecution , Assignment statements
recursive object
String conversions
reference counting
Objectsvalues and
reference, attribute
Attribute references
representation, integer
The standard type
reserved word
Keywords
return statement
The return statement, The try statement
seqence object
The standard type
sequence item
Subscriptions
sequence object
The standard type , Subscriptions, Slicings, Comparisons, Assignment statements, The for statement
shifting operation
Shifting operations
simple statement
Simple statements
singleton tuple
The standard type
slice
Slicings
slicing
The standard type , The standard type , Slicings
slicing assignment
Assignment statements
space
Indentation
special attribute
The standard type
special attribute, generic
The standard type
stack trace
The standard type
stack, execution
The standard type
standard input
Complete Python programs
standard output
Expression statements, The print statement
statement grouping
Indentation
statement, access
The access statement
statement, assignment
The standard type , Expressions and conditions, Assignment statements
statement, break
The break statement, The while statement, The for statement, The try statement
statement, compound
Compound statements
statement, continue
The continue statement, The while statement, The for statement, The try statement
statement, del
The standard type , The del statement
statement, exec
The exec statement
statement, expression
Expression statements
statement, for
The break statement, The continue statement, The for statement
statement, global
Code blocksexecution , Identifiers (Names), Assignment statements, The del statement, The import statement, The global statement
statement, if
The if statement
statement, import
The standard type , The import statement
statement, loop
The break statement, The continue statement, The while statement, The for statement
statement, pass
The pass statement
statement, print
The print statement
statement, raise
The raise statement
statement, return
The return statement, The try statement
statement, simple
Simple statements
statement, try
The standard type , The try statement
statement, while
The break statement, The continue statement, The while statement
stderr
The standard type
stdin
The standard type
stdio
The standard type
stdout
The standard type , The print statement
string comparison
The standard type
string conversion
String conversions, Expression statements
string item
Subscriptions
string literal
String literals
string object
The standard type , Subscriptions, Slicings
subscription
The standard type , The standard type , The standard type , Subscriptions
subscription assignment
Assignment statements
subtraction
Binary arithmetic operations
suite
Compound statements
suppression, newline
The print statement
syntax
Notation, Expressions and conditions
sys (built-in module)
The print statement, The import statement, The try statement, Complete Python programs
sys.exc_traceback
The standard type
sys.last_traceback
The standard type
sys.modules
The import statement
sys.path
The import statement
sys.stderr
The standard type
sys.stdin
The standard type
sys.stdout
The standard type
tab
Indentation
target
Assignment statements
target list
Assignment statements, The for statement
target list assignment
Assignment statements
target list, deletion
The del statement
target, deletion
The del statement
target, loop control
The break statement
tb_frame
The standard type
tb_lasti
The standard type
tb_lineno
The standard type
tb_next
The standard type
test, identity
Comparisons
test, membership
Comparisons
token
Lexical analysis
trace, stack
The standard type
traceback object
The standard type , The try statement
trailing comma
Expression lists and , The print statement
try statement
The standard type , The try statement
tuple display
Parenthesized forms
tuple object
The standard type , Subscriptions, Slicings, Expression lists and
tuple, empty
The standard type , Parenthesized forms
tuple, singleton
The standard type
type
The standard type
type hierarchy
The standard type
type of an object
Objectsvalues and
type, data
The standard type
type, immutable data
Literals
unary arithmetic operation
Unary arithmetic operations
unary bit-wise operation
Unary arithmetic operations
unbinding name
Code blocksexecution , The del statement
unreachable object
Objectsvalues and
unrecognized escape sequence
String literals
user-defined function
The standard type
user-defined function call
Calls, Function definitions
user-defined function object
The standard type , Calls, Function definitions
user-defined method
The standard type
user-defined method object
The standard type
user-defined module
The import statement
value of an object
Objectsvalues and
value, default parameter
Function definitions
values, writing
Expression statements, The print statement
variable length parameter list
Function definitions
while statement
The break statement, The continue statement, The while statement
whitespace
Indentation
writing values
Expression statements, The print statement
xor, bit-wise
Binary bit-wise operations

guido@cwi.nl