04.08.2014 Views

o_18ufhmfmq19t513t3lgmn5l1qa8a.pdf

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

576 ■INDEX<br />

interfaces 155–156<br />

methods 150–151<br />

multiple superclasses 154–155<br />

namespaces 151–152<br />

superclasses 153<br />

functions<br />

creating 111<br />

documenting 112<br />

functional programming 133–137<br />

parameters 113–126<br />

Python functions 112–113<br />

objects 139–140<br />

encapsulation 143–146<br />

inheritance 146–147<br />

polymorphism 140–143<br />

recursion 129–130<br />

binary search 131–133<br />

factorial and power 130–131<br />

scoping 126–127<br />

rebinding global variables 127–128<br />

structure 110<br />

uses 109–110<br />

accessor methods 184–185<br />

action attribute<br />

tag 476<br />

action method<br />

rule objects 400, 401<br />

ActivePython 571<br />

alternative Python distribution 6<br />

add function<br />

operator module 142<br />

add method<br />

Set class 223<br />

addFilter method<br />

Parser class 401, 402<br />

addition operator (+) 37<br />

addRule method<br />

Parser class 401, 402<br />

algorithms 9, 10<br />

alignment 58<br />

allow_reuse_address attribute<br />

SimpleXMLRPCServer class 509<br />

and operator 92, 558<br />

apilevel module property<br />

Python DB API 286<br />

append method<br />

lists 43<br />

appendleft method<br />

deque type 226<br />

apply function 137, 559<br />

arcade game 527<br />

first implementation 531–535<br />

further exploration 545<br />

goals 528<br />

preparations 530–531<br />

problem 527<br />

second implementation 535–545<br />

tools 528–530<br />

argv variable<br />

sys module 215<br />

arithmetic operators 11<br />

arraysize attribute<br />

cursor objects 289<br />

Art of Computer Programming, The<br />

Knuth, Donald 387<br />

Art of UNIX Programming, The<br />

Raymond, Eric S. 387<br />

as clause<br />

import statements 83<br />

open functions 83<br />

asctime function<br />

time module 227<br />

assert method<br />

TestCase class 348<br />

assert statements 93, 566<br />

assertAlmostEqual method<br />

TestCase class 348

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!