“46029˙INDX˙Miller” 2008/8/11 14:30 page 483 #1
INDEX
2
-A-
abstract class, 403
abstraction, 23, 38
acceleration, 358
accessor method, 335
accumulator pattern, 54
accumulator variable, 55
actual parameter, 205
algorithm, 2, 330
Alien, 446
AlienInvaders, 450
align, 228
and, 65, 174
AnimatedTurtle, 438, 440
append, 127
application, 3
applyProduction, 321
approximation, 15, 40, 46, 49
archimedes,52
ASCII, 92
assignment operator, 21, 65
assignment statement, 17, 18, 20, 55, 212
attribute, 24
average, 131
axiom, 318
axis, 222
-B-
Babbage, Charles, 264
bar chart, 146
base case, 307
base class, 407
base index, 228
bases , 407
Bear, 384
Berners-Lee, Tim, 3
biology, 4
black box, 23
block, 29, 33, 173
Bomb, 449
Boolean expression, 64, 173, 467
BoundedTurtle, 445
brute force, 108, 264
builtin namespace, 208, 212
-C-
Caesar cipher, 108
call by assignment, 206, 431
call tree, 315
483
“46029˙INDX˙Miller” 2008/8/11 14:30 page 484 #2
484 Index
callback function, 423
cantor dust, 321
Canvas, 401, 415
capture group, 295
central tendency, 131
centroid, 241
change of state, 245
character, 84, 119, 155
checkWord, 293
child class, 397
chr,91
cImage module, 168, 455
ciphertext, 93, 109
circumference, 40, 45
class, 330
class , 346
class definition object, 346
cluster analysis, 236
clusterAnalysis, 251
clusters, 236, 241
circle, 37
collection, 118, 155
collection classes, 120
column, 190, 221
column major storage, 269
comma-delimited, 120
complex number, 15
composition, 431
compound Boolean expression, 65, 468
computer science, 1, 330
computer scientist, 3
computer simulation 5, 62, 368
concatenation, 85
condition, 67, 69, 245
constructor, 32, 333
convolution, 227
convolve, 229
coordinate, 27, 190
Copernicus, 329
copy string, 97
copy list, 133
correlation, 176, 178
correlation, 179
createCentroids, 248
createClusters, 249
createWordDict, 267
cryptanalysis, 264
cryptography, 83
cryptoquip, 100
cTurtle 24, 76, 454
current, 133
current character, 113
current namespace, 212
-D-
data, 139, 235, 330
data mining, 236
data model, 330
decorator, 446
decryption, 94
def, 29, 52
definite iteration, 244
degrees, 49, 52
denominator, 56
dereferencing, 346, 408
design, 332, 369
diameter, 45
dict , 408
“46029˙INDX˙Miller” 2008/8/11 14:30 page 485 #3
Index 485
dictionary, 135, 140, 266, 462
dictionary methods, 137
digital image processing, 185
Dijkstra, Edsgar, 2
dispersion, 129, 149
distance, 439
distributed.net project, 263
division operator, 13
dot operator, 26
double, 218, 220
drawCircle,40
drawLS, 320, 325
drawPolygon,38
drawSpiral,35
drawSquare, 30, 309
drawTriangle, 37, 314
-E-
earthquake, 117, 166, 235
edgeDetect, 230
edge detection, 225
elif statement, 71
empty list, 121
encryption, 93
encryptMessage,99
encryptVignere, 113
enlarge, 219
equality operator, 65
Etch, 432
euclidD, 240
Euclidian distance, 239, 357
evaluation, 12, 27
evaluation loop, 11
event loop, 424
event-driven program, 423
EventHandler, 425, 428
exponentiation, operator, 14
expression
mathematical, 11
Python, 17
regular, 292, 470
relational, 64
experiment, 117
extends, 404
-F-
factorial, 100, 309
Fibonacci sequence, 319
File Transfer Protocol, 177
file
open, 156, 463
close, 156, 463
iterating over lines, 157
read, 163, 463
write, 159, 463
FileImage methods, 189
filtering, 182, 226
findLetters, 298
Fish, 378
flip axis, 222
flip image, 222
flipping, 222
floating-point number, 13
float, 13, 17
for loop, 33, 53, 55, 157, 181, 195
force, 360
formal parameter, 206, 213
format operator, 161
“46029˙INDX˙Miller” 2008/8/11 14:30 page 486 #4
486 Index
formatted string, 161, 162, 464
fractal, 305
frequencyChart, 143
frequencyTable, 143
frequencyTableAlt, 145
frequency analysis, 277
frequency distribution, 142, 144, 146,
169
frequency, 142
from module import, 215
function, 24, 29, 200, 207
-G-
Gates, Bill, 5
GeometricObject, 403, 416
generalization, 7
generalTransform, 204
genKeyFromPass, 107
getRange, 130
getMax, 130
GPS, 3
grammar, 318
graphical, 7
gravitational constant, 359
gravity, 359
grayscale, 197, 225
getFreq, 275
getter method, 335
grayPixel, 198
-H-
HAS-A relationship, 395
height, 187
help, 47, 48
histogram, 146, 170
hostname, 177
Hypertext Markup Language (HTML), 172,
174
Hypertext Transfer Protocol (HTTP), 177
hypotenuse, 50
-I-
identity, 25
Idle, Eric, 9
IDLE, 9
if statement, 67, 106, 182
ifelse statement, 68
image processing, 185
ImageWin methods, 188
immutable, 123, 206
import, 24, 47, 210
indefinite iteration, 243
index, 86, 228
index, 250
index operator, 86
indexing, 86
indexToLetter,93
infinite loop, 174
infinite expansion, 56
information, 117
information hiding, 336
inheritance, 391
inheritance hierarchy, 397
initialization, 54, 245
init , 333
input,99
installation
cTurtle, 454
Python, 453
“46029˙INDX˙Miller” 2008/8/11 14:30 page 487 #5
Index 487
cImage, 455
Python Image Library (PIL), 455
instance, 26
instance data, 331
instance variable, 370, 397
integer, 22
integer division, 13, 221
intensity, 186, 197, 225, 227
interpreter, 9
invocation, 206
irrational number, 46
IS-A relationship, 395
isinstance, 381, 402
items, 275
iteration, 36, 55, 57, 94, 119, 243, 465
-J-
join, 268
-K-
K-means algorithm, 241
kernel, 226
key, 103, 112, 135, 275
key-value pair, 136
keyGen, 105
keywords, 21
Koch curve, 316
-L-
L-system, 318
latitude, 254
LaserCannon, 444
left-hand side, 17, 211
Leibniz formula, 56
leibniz,58
length, 88
len,86
letter frequency, 271
letterFrequency, 273
letterToIndex,93
Lindenmayer, Astrid, 318
Line, 405
list, 120, 459
list, 124
list methods, 125
list comprehension, 181, 447, 467
list of lists, 227, 229
logic, 5
local namespace, 210, 212, 215, 345
local variable, 211
logical operator, 65
longitude, 254
loop variable, 35
lsystem, 325
lunar eclipse, 329
-M-
main namespace, 208, 209, 215, 346
mainloop, 431
makeGrayScale, 199
makeMagnitudeList, 167
makeNegative, 197
mapping, 221
mask, 226
mass, 359
match, 292
math, 47, 469
matplotlib, 285
maybeAdd, 280

Get Python Programming in Context now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.