\begin{theindex}

  \item {\ptt __bases__} , 15
  \item {\ptt __builtin__} (built-in module), 47
  \item {\ptt __class__} , 15
  \item {\ptt __dict__} , 14, 15
  \item {\ptt __init__} , 14
  \item {\ptt __main__} (built-in module), 47
  \item {\ptt __members__} , 11
  \item {\ptt __methods__} , 11
  \item {\ptt __name__} , 14

  \indexspace

  \item {\ptt access}
    \subitem statement, 40
  \item actual
    \subitem parameter, 45
  \item addition, 29
  \item and
    \subitem bit-wise, 30
  \item {\ptt and}
    \subitem operator, 32
  \item anonmymous
    \subitem function, 32
  \item argument, 45
    \subitem function, 13
  \item arithmetic
    \subitem conversion, 23
    \subitem operation, binary, 28
    \subitem operation, unary, 28
  \item ASCII, 2, 6, 7, 9, 12, 13
  \item assignment
    \subitem attribute, 34, 35
    \subitem class attribute, 14
    \subitem class instance attribute, 15
    \subitem slicing, 35
    \subitem statement, 13, 23, 34
    \subitem subscription, 35
    \subitem target list, 34
  \item atom, 24
  \item attribute, 11
    \subitem assignment, 34, 35
    \subitem assignment, class, 14
    \subitem assignment, class instance, 15
    \subitem class, 14
    \subitem class instance, 15
    \subitem deletion, 36
    \subitem generic special, 11
    \subitem reference, 26
    \subitem special, 11

  \indexspace

  \item backslash character, 3
  \item binary
    \subitem arithmetic operation, 28
    \subitem bit-wise operation, 30
  \item binding
    \subitem global name, 39
    \subitem name, 20, 24, 34, 38, 39, 45, 46
  \item bit-wise
    \subitem and, 30
    \subitem operation, binary, 30
    \subitem operation, unary, 28
    \subitem or, 30
    \subitem xor, 30
  \item blank line, 4
  \item block
    \subitem code, 20
  \item BNF, 1, 23
  \item Boolean
    \subitem operation, 31
  \item {\ptt break}
    \subitem statement, 38, 42, 43, 45
  \item built-in
    \subitem method, 14
    \subitem module, 39
    \subitem name, 24
  \item built-in function
    \subitem call, 28
    \subitem object, 14, 28
  \item built-in method
    \subitem call, 28
    \subitem object, 14, 28
  \item byte, 12

  \indexspace

  \item C, 6, 11, 12, 14, 15, 30
  \item call, 27
    \subitem built-in function, 28
    \subitem built-in method, 28
    \subitem class instance, 28
    \subitem class object, 14, 28
    \subitem function, 13, 28, 45
    \subitem instance, 28
    \subitem method, 28
    \subitem procedure, 34
    \subitem user-defined function, 28, 45
  \item callable
    \subitem object, 13, 27
  \item chaining
    \subitem comparisons, 30
  \item character, 12, 27
  \item character set, 13
  \item {\ptt chr} (built-in function), 12, 13
  \item class
    \subitem attribute, 14
    \subitem attribute assignment, 14
    \subitem definition, 37, 46
    \subitem instance, 15
    \subitem name, 46
    \subitem object, 14, 28, 46
  \item class instance
    \subitem attribute, 15
    \subitem attribute assignment, 15
    \subitem call, 28
    \subitem object, 14, 15, 28
  \item class object
    \subitem call, 14, 28
  \item clause, 41
  \item {\ptt co_code} , 15
  \item {\ptt co_consts} , 15
  \item {\ptt co_filename} , 15
  \item {\ptt co_names} , 15
  \item code
    \subitem block, 20
    \subitem object, 15
  \item code block, 20, 24, 39
  \item comma, 23, 25
    \subitem trailing, 32, 37
  \item command line, 47
  \item comment, 3
  \item comparison, 30
    \subitem string, 13
  \item comparisons
    \subitem chaining, 30
  \item compound
    \subitem statement, 41
  \item condition, 23
    \subitem list, 32
  \item constant, 6
  \item container, 11, 14
  \item {\ptt continue}
    \subitem statement, 38, 42, 43, 45
  \item conversion
    \subitem arithmetic, 23
    \subitem string, 26, 34

  \indexspace

  \item dangling
    \subitem else, 42
  \item data, 10
    \subitem type, 11
    \subitem type, immutable, 24
  \item datum, 25
  \item decimal literal, 7
  \item DEDENT token, 4, 42
  \item default
    \subitem parameter value, 45
  \item definition
    \subitem class, 37, 46
    \subitem function, 37, 45
  \item {\ptt del}
    \subitem statement, 13, 36
  \item delete, 13
  \item deletion
    \subitem attribute, 36
    \subitem target, 36
    \subitem target list, 36
  \item delimiters, 9
  \item dictionary
    \subitem display, 25
    \subitem object, 13, 14, 17, 25, 26, 35
  \item display
    \subitem dictionary, 25
    \subitem list, 25
    \subitem tuple, 25
  \item division, 29

  \indexspace

  \item EBCDIC, 13
  \item {\ptt elif}
    \subitem keyword, 42
  \item else
    \subitem dangling, 42
  \item {\ptt else}
    \subitem keyword, 38, 42--44
  \item empty
    \subitem list, 25
    \subitem tuple, 13, 25
  \item error handling, 22
  \item errors, 22
  \item escape sequence, 6
  \item {\ptt eval} (built-in function), 48
  \item {\ptt exc_traceback} , 16, 44
  \item {\ptt exc_type} , 44
  \item {\ptt exc_value} , 44
  \item {\ptt except}
    \subitem keyword, 44
  \item exception, 22, 37
    \subitem handler, 16
    \subitem {\ptt ImportError}, 39
    \subitem {\ptt NameError}, 24
    \subitem raising, 37
    \subitem {\ptt RuntimeError}, 37
    \subitem {\ptt SyntaxError}, 39
    \subitem {\ptt TypeError}, 23, 25, 28
    \subitem {\ptt ValueError}, 29
    \subitem {\ptt ZeroDivisionError}, 29
  \item exception handler, 22
  \item exclusive
    \subitem or, 30
  \item {\ptt exec}
    \subitem statement, 40
  \item execution
    \subitem frame, 20, 46
    \subitem stack, 16
  \item execution model, 20
  \item expression, 23
    \subitem lambda, 32
    \subitem list, 32, 34
    \subitem statement, 33
  \item extension
    \subitem filename, 39
    \subitem module, 11

  \indexspace

  \item {\ptt f_back} , 15
  \item {\ptt f_code} , 15
  \item {\ptt f_globals} , 15
  \item {\ptt f_lasti} , 15
  \item {\ptt f_lineno} , 15
  \item {\ptt f_locals} , 15
  \item file
    \subitem object, 15, 48
  \item filename
    \subitem extension, 39
  \item {\ptt finally}
    \subitem keyword, 37, 38, 44
  \item floating point
    \subitem number, 12, 23
    \subitem object, 12
  \item floating point literal, 7
  \item {\ptt for}
    \subitem statement, 38, 43
  \item form
    \subitem lambda, 32, 46
  \item formal
    \subitem parameter, 45
  \item frame
    \subitem execution, 20, 46
    \subitem object, 15
  \item {\ptt from}
    \subitem keyword, 38, 39
  \item {\ptt from ... import *} , 39
  \item {\ptt func_code} , 14
  \item {\ptt func_globals} , 14
  \item function
    \subitem anonmymous, 32
    \subitem argument, 13
    \subitem call, 13, 28, 45
    \subitem call, user-defined, 28, 45
    \subitem definition, 37, 45
    \subitem name, 45
    \subitem object, 13, 14, 28, 45
    \subitem user-defined, 13

  \indexspace

  \item garbage collection, 10
  \item generic
    \subitem special attribute, 11
  \item global
    \subitem name, 24
    \subitem name binding, 39
    \subitem name space, 14, 20
  \item {\ptt global}
    \subitem statement, 20, 24, 34, 36, 39
  \item grammar, 1
  \item grouping, 4

  \indexspace

  \item handle an exception, 22
  \item handler
    \subitem exception, 16
  \item hash character, 3
  \item hexadecimal literal, 7
  \item hierarchy
    \subitem type, 11

  \indexspace

  \item identifier, 5, 24
  \item identity
    \subitem test, 31
  \item identity of an object, 10
  \item {\ptt if}
    \subitem statement, 42
  \item {\ptt im_func} , 14
  \item {\ptt im_self} , 14
  \item immutable
    \subitem data type, 24
    \subitem object, 12
  \item immutable object, 10
  \item immutable sequence
    \subitem object, 12
  \item {\ptt import}
    \subitem statement, 14, 38
  \item {\ptt ImportError}
    \subitem exception, 39
  \item importing
    \subitem module, 38
  \item {\ptt in}
    \subitem keyword, 43
    \subitem operator, 31
  \item inclusive
    \subitem or, 30
  \item INDENT token, 4
  \item indentation, 4
  \item index operation, 12
  \item inheritance, 46
  \item initialization
    \subitem module, 39
  \item input, 48
    \subitem raw, 48
  \item {\ptt input} (built-in function), 48
  \item instance
    \subitem call, 28
    \subitem class, 15
    \subitem object, 14, 15, 28
  \item integer
    \subitem long, 23
    \subitem object, 11
    \subitem plain, 23
    \subitem representation, 12
  \item integer literal, 7
  \item interactive mode, 47
  \item internal type, 15
  \item interpreter, 47
  \item inversion, 28
  \item invocation, 13
  \item {\ptt is}
    \subitem operator, 31
  \item {\ptt is not}
    \subitem operator, 31
  \item item
    \subitem sequence, 26
    \subitem string, 27
  \item item selection, 12

  \indexspace

  \item key, 25
  \item key/datum pair, 25
  \item keyword, 6
    \subitem {\ptt elif}, 42
    \subitem {\ptt else}, 38, 43, 44
    \subitem {\ptt except}, 44
    \subitem {\ptt finally}, 37, 38, 44
    \subitem {\ptt from}, 38, 39
    \subitem {\ptt in}, 43

  \indexspace

  \item lambda
    \subitem expression, 32
    \subitem form, 32, 46
  \item {\ptt last_traceback} , 16
  \item leading whitespace, 4
  \item {\ptt len} (built-in function), 12, 13
  \item lexical analysis, 3
  \item lexical definitions, 2
  \item line continuation, 3
  \item line joining, 3
  \item line structure, 3
  \item list
    \subitem assignment, target, 34
    \subitem condition, 32
    \subitem deletion target, 36
    \subitem display, 25
    \subitem empty, 25
    \subitem expression, 32, 34
    \subitem object, 13, 25--27, 35
    \subitem target, 34, 43
  \item literal, 6, 24
  \item local
    \subitem name space, 20
  \item logical line, 3
  \item long
    \subitem integer, 23
  \item long integer
    \subitem object, 12
  \item long integer literal, 7
  \item loop
    \subitem over mutable sequence, 43
    \subitem statement, 38, 42, 43
  \item loop control
    \subitem target, 38

  \indexspace

  \item {\ptt makefile} (built-in function), 15
  \item mapping
    \subitem object, 13, 15, 26, 35
  \item membership
    \subitem test, 31
  \item method
    \subitem built-in, 14
    \subitem call, 28
    \subitem object, 14, 28
    \subitem user-defined, 14
  \item minus, 28
  \item module
    \subitem built-in, 39
    \subitem extension, 11
    \subitem importing, 38
    \subitem initialization, 39
    \subitem name, 39
    \subitem name space, 14
    \subitem object, 14, 26
    \subitem user-defined, 39
  \item {\ptt modules} , 39
  \item modulo, 29
  \item multiplication, 29
  \item mutable
    \subitem object, 13, 34, 35
  \item mutable object, 10
  \item mutable sequece
    \subitem object, 13
  \item mutable sequence
    \subitem loop over, 43

  \indexspace

  \item name, 5, 24
    \subitem binding, 20, 24, 34, 38, 39, 45, 46
    \subitem binding, global, 39
    \subitem built-in, 24
    \subitem class, 46
    \subitem function, 45
    \subitem global, 24
    \subitem module, 39
    \subitem rebinding, 20, 34
    \subitem unbinding, 20, 36
  \item name space, 20
    \subitem global, 14, 20
    \subitem local, 20
    \subitem module, 14
  \item {\ptt NameError}
    \subitem exception, 24
  \item negation, 28
  \item newline
    \subitem suppression, 37
  \item NEWLINE token, 3, 42
  \item {\ptt None}
    \subitem object, 11
  \item {\ptt None} , 11, 34
  \item {\ptt not}
    \subitem operator, 32
  \item {\ptt not in}
    \subitem operator, 31
  \item notation, 1
  \item null
    \subitem operation, 36
  \item number, 7
    \subitem floating point, 12, 23
    \subitem object, 11, 15
  \item numeric
    \subitem object, 11
  \item numeric literal, 7

  \indexspace

  \item object, 10
    \subitem built-in function, 14, 28
    \subitem built-in method, 14, 28
    \subitem callable, 13, 27
    \subitem class, 14, 28, 46
    \subitem class instance, 14, 15, 28
    \subitem code, 15
    \subitem dictionary, 13, 14, 17, 25, 26, 35
    \subitem file, 15, 48
    \subitem floating point, 12
    \subitem frame, 15
    \subitem function, 13, 14, 28, 45
    \subitem immutable, 12
    \subitem immutable sequence, 12
    \subitem instance, 14, 15, 28
    \subitem integer, 11
    \subitem list, 13, 25--27, 35
    \subitem long integer, 12
    \subitem mapping, 13, 15, 26, 35
    \subitem method, 14, 28
    \subitem module, 14, 26
    \subitem mutable, 34, 35
    \subitem mutable sequece, 13
    \subitem {\ptt None}, 11
    \subitem number, 11, 15
    \subitem numeric, 11
    \subitem plain integer, 12
    \subitem recursive, 26
    \subitem seqence, 12
    \subitem sequence, 15, 26, 27, 31, 35, 43
    \subitem string, 12, 26, 27
    \subitem traceback, 16, 44
    \subitem tuple, 13, 26, 27, 32
    \subitem user-defined function, 13, 28, 45
    \subitem user-defined method, 14
  \item object closure, 14
  \item octal literal, 7
  \item {\ptt open} (built-in function), 15
  \item operation
    \subitem binary arithmetic, 28
    \subitem binary bit-wise, 30
    \subitem Boolean, 31
    \subitem null, 36
    \subitem shifting, 29
    \subitem unary arithmetic, 28
    \subitem unary bit-wise, 28
  \item operator
    \subitem {\ptt and}, 32
    \subitem {\ptt in}, 31
    \subitem {\ptt is}, 31
    \subitem {\ptt is not}, 31
    \subitem {\ptt not}, 32
    \subitem {\ptt not in}, 31
    \subitem {\ptt or}, 32
  \item operators, 8
  \item or
    \subitem bit-wise, 30
    \subitem exclusive, 30
    \subitem inclusive, 30
  \item {\ptt or}
    \subitem operator, 32
  \item {\ptt ord} (built-in function), 12, 13
  \item output, 34, 37
    \subitem standard, 34, 37

  \indexspace

  \item parameter, 45
    \subitem actual, 45
    \subitem formal, 45
    \subitem value, default, 45
  \item parameter list
    \subitem variable length, 46
  \item parenthesized form, 25
  \item parser, 3
  \item Pascal, 43
  \item {\ptt pass}
    \subitem statement, 36
  \item {\ptt path} , 39
  \item physical line, 3, 6
  \item plain
    \subitem integer, 23
  \item plain integer
    \subitem object, 12
  \item plain integer literal, 7
  \item plus, 28
  \item {\ptt popen} (built-in function), 15
  \item primary, 26
  \item {\ptt print}
    \subitem statement, 36
  \item procedure
    \subitem call, 34
  \item program, 47

  \indexspace

  \item {\ptt raise}
    \subitem statement, 37
  \item raise an exception, 22
  \item raising
    \subitem exception, 37
  \item {\ptt range} (built-in function), 43
  \item raw input, 48
  \item {\ptt raw_index} (built-in function), 48
  \item {\ptt readline} , 48
  \item rebinding
    \subitem name, 20, 34
  \item recursive
    \subitem object, 26
  \item reference
    \subitem attribute, 26
  \item reference counting, 10
  \item representation
    \subitem integer, 12
  \item reserved word, 6
  \item {\ptt return}
    \subitem statement, 37, 45
  \item {\ptt RuntimeError}
    \subitem exception, 37

  \indexspace

  \item seqence
    \subitem object, 12
  \item sequence
    \subitem item, 26
    \subitem object, 15, 26, 27, 31, 35, 43
  \item shifting
    \subitem operation, 29
  \item simple
    \subitem statement, 33
  \item singleton
    \subitem tuple, 13
  \item slice, 27
  \item slicing, 12, 13, 27
    \subitem assignment, 35
  \item space, 4
  \item special
    \subitem attribute, 11
    \subitem attribute, generic, 11
  \item stack
    \subitem execution, 16
    \subitem trace, 16
  \item standard
    \subitem output, 34, 37
  \item Standard C, 6
  \item standard input, 47
  \item statement
    \subitem {\ptt access}, 40
    \subitem assignment, 13, 23, 34
    \subitem {\ptt break}, 38, 42, 43, 45
    \subitem compound, 41
    \subitem {\ptt continue}, 38, 42, 43, 45
    \subitem {\ptt del}, 13, 36
    \subitem {\ptt exec}, 40
    \subitem expression, 33
    \subitem {\ptt for}, 38, 43
    \subitem {\ptt global}, 20, 24, 34, 36, 39
    \subitem {\ptt if}, 42
    \subitem {\ptt import}, 14, 38
    \subitem loop, 38, 42, 43
    \subitem {\ptt pass}, 36
    \subitem {\ptt print}, 36
    \subitem {\ptt raise}, 37
    \subitem {\ptt return}, 37, 45
    \subitem simple, 33
    \subitem {\ptt try}, 16, 43
    \subitem {\ptt while}, 38, 42
  \item statement grouping, 4
  \item {\ptt stderr} , 15
  \item {\ptt stdin} , 15
  \item stdio, 15
  \item {\ptt stdout} , 15, 37
  \item string
    \subitem comparison, 13
    \subitem conversion, 26, 34
    \subitem item, 27
    \subitem object, 12, 26, 27
  \item string literal, 6
  \item subscription, 12, 13, 26
    \subitem assignment, 35
  \item subtraction, 29
  \item suite, 41
  \item suppression
    \subitem newline, 37
  \item syntax, 1, 23
  \item {\ptt SyntaxError}
    \subitem exception, 39
  \item {\ptt sys} (built-in module), 37, 39, 44, 47
  \item {\ptt sys.exc_traceback} , 16
  \item {\ptt sys.last_traceback} , 16
  \item {\ptt sys.modules} , 39
  \item {\ptt sys.path} , 39
  \item {\ptt sys.stderr} , 15
  \item {\ptt sys.stdin} , 15
  \item {\ptt sys.stdout} , 15

  \indexspace

  \item tab, 4
  \item target, 34
    \subitem deletion, 36
    \subitem list, 34, 43
    \subitem list assignment, 34
    \subitem list, deletion, 36
    \subitem loop control, 38
  \item {\ptt tb_frame} , 16
  \item {\ptt tb_lasti} , 16
  \item {\ptt tb_lineno} , 16
  \item {\ptt tb_next} , 16
  \item test
    \subitem identity, 31
    \subitem membership, 31
  \item token, 3
  \item trace
    \subitem stack, 16
  \item traceback
    \subitem object, 16, 44
  \item trailing
    \subitem comma, 32, 37
  \item {\ptt try}
    \subitem statement, 16, 43
  \item tuple
    \subitem display, 25
    \subitem empty, 13, 25
    \subitem object, 13, 26, 27, 32
    \subitem singleton, 13
  \item type, 11
    \subitem data, 11
    \subitem hierarchy, 11
    \subitem immutable data, 24
  \item type of an object, 10
  \item {\ptt TypeError}
    \subitem exception, 23, 25, 28

  \indexspace

  \item unary
    \subitem arithmetic operation, 28
    \subitem bit-wise operation, 28
  \item unbinding
    \subitem name, 20, 36
  \item UNIX, 47
  \item unreachable object, 10
  \item unrecognized escape sequence, 7
  \item user-defined
    \subitem function, 13
    \subitem function call, 28, 45
    \subitem method, 14
    \subitem module, 39
  \item user-defined function
    \subitem object, 13, 28, 45
  \item user-defined method
    \subitem object, 14

  \indexspace

  \item value
    \subitem default parameter, 45
  \item value of an object, 10
  \item {\ptt ValueError}
    \subitem exception, 29
  \item values
    \subitem writing, 34, 37
  \item variable length
    \subitem parameter list, 46

  \indexspace

  \item {\ptt while}
    \subitem statement, 38, 42
  \item whitespace, 4
  \item writing
    \subitem values, 34, 37

  \indexspace

  \item xor
    \subitem bit-wise, 30

  \indexspace

  \item {\ptt ZeroDivisionError}
    \subitem exception, 29

\end{theindex}
