Page 239 - think python 2
P. 239

Index
217
 map to, 171
mapping, 112, 131 Markov analysis, 130 mash-up, 132
math function, 18 matplotlib, 135
max function, 117, 118 McCloskey, Robert, 73 md5, 143
MD5 algorithm, 146 md5sum, 146 membership
binary search, 101 bisection search, 101 dictionary, 104
list, 90
set, 113 memo, 109, 112
mental model, 199
metaphor, method invocation, 163 metathesis, 123
method, 36, 75, 161, 169
__cmp__, 173
__str__, 165, 174
add, 165
append, 92, 97, 174, 175 close, 138, 141, 143 count, 79
extend, 92
get, 105
init, 164, 172, 174, 176 items, 120
join, 95, 175
mro, 179
pop, 94, 175
radd, 167
read, 143
readline, 83, 143 remove, 94
replace, 125 setdefault, 113
sort, 92, 99, 176
split, 95, 117
string, 79
strip, 84, 125 translate, 125
update, 120
values, 104
void, 92
method append, 101
method resolution order, 179 method syntax, 162
method, list, 92
Meyers, Chris, vi
min function, 117, 118 Moby Project, 83 model, mental, 199 modifier, 157, 160 module, 18, 26
bisect, 101
collections, 187, 188, 190 copy, 151
datetime, 160
dbm, 141
os, 139
pickle, 137, 142
pprint, 112
profile, 133
random, 101, 126, 175 reload, 144, 195
shelve, 142
string, 125
structshape, 122
time, 101
module object, 18, 143
module, writing, 143
modulus operator, 39, 47
Monty Python and the Holy Grail, 156 MP3, 146
mro method, 179
multiline string, 35, 194
multiplicity (in class diagram), 178, 181 multiset, 187
mutability, 74, 90, 92, 96, 111, 115, 121, 151 mutable object, as default value, 170
name built-in variable, 144 namedtuple, 190 NameError, 22, 197
NaN, 183
natural language, 4, 7
negative index, 72
nested conditional, 42, 47
nested list, 89, 91, 100
newline, 45, 175
Newton’s method, 66
None special value, 24, 26, 52, 92, 94 NoneType type, 24
not operator, 40 number, random, 126





























   237   238   239   240   241