
Beginning Python - From Novice To Professional (2005)
.pdf598 ■I N D E X
setoutputsize method |
Slashdot |
cursor objects 289 |
as example of bulletin board 483 |
sets module |
sleep function |
frozenset type 223 |
time module 227 |
Set class 221–223 |
slice assignments |
set type 221 |
assigning lists to slices 42 |
SetSizer method |
inserting elements 42 |
wx.Panel class 276 |
slicing lists 548 |
sha module 251 |
slicing sequences 34–35 |
password handling 478–479 |
SmallTalk language |
shadowing 127 |
privacy of object state 145 |
shebang 21 |
smtpd module 302 |
Shelve class |
smtplib module 302 |
close method 231 |
socket class |
shelve module 285 |
bind method 298 |
example 232–235 |
listen method 298 |
introduction 231 |
socket module 298 |
open function 231 |
socket module |
potential problem 231–232 |
gethostname function 298 |
Show method |
network programming 298 |
wx.Frame class 273 |
socket class 298 |
shuffle() function |
SocketServer class 297 |
random module 228 |
SocketServer module |
Simple API for XML. See SAX |
classes 303 |
simple statements 566 |
forking and threading 305 |
Simple Wrapper and Interface Generator. See |
network programming 302–303 |
SWIG |
sort method 47, 48, 98 |
|
|
SimpleWebSource class |
advanced sorting 48, 49 |
|
|
creating 447 |
sorted function 98, 561 |
|
|
SimpleXMLRPCServer class |
Sorting Mini-HOWTO 49 |
|
|
allow_reuse_address attribute 509 |
Andrew Dalke 49 |
|
|
handling of exceptions 337 |
span method |
|
|
register_function method 501 |
Match Objects 242 |
|
|
register_instance method 501, 505 |
special characters |
|
|
registering Node with 503 |
character sets 237 |
|
|
serve_forever method 501 |
parsing in XML files 436 |
|
|
SimpleXMLRPCServer module 302, 501, 573 |
split method 63 |
|
|
importing 501 |
Join as inverse of 61–62 |
|
|
single-quoted strings 23–24 |
|
■I N D E X 599
split function |
print statements 14, 16 |
|
re module 239, 240 |
using with commas 81–82 |
|
Sprite class |
static methods |
|
pygame.sprite module 530 |
creating with staticmethod objects 187 |
|
sqrt function 18 |
stderr variable |
|
math module 554 |
sys module 215, 258 |
|
Stackless Python |
stdin variable |
|
alternative Python distribution 6 |
iteratorability of 266 |
|
StandardError exception class 287 |
sys module 215, 258 |
|
start method |
stdout class |
|
adding to handler superclass 398 |
sys module 215, 258 |
|
Match Objects 242 |
write method 310 |
|
start_paragraph method |
StopIteration exception 190 |
|
adding to handler superclass 398 |
str function 25, 561 |
|
statements 14–15 |
StreamRequestHandler class 303 |
|
assignment statements 83–85 |
strftime function |
|
blocks 85–86 |
time module 227, 441 |
|
conditional statements 86–87 |
string formatting |
|
elif clauses 88 |
dictionaries 71, 72 |
|
else clauses 87 |
string module 501 |
|
if statements 87 |
Template class 72 |
|
nesting blocks 88 |
template strings 54 |
|
conditions 86 |
values from 60 |
|
assertions 93 |
string representations 25 |
|
boolean statements 91–92 |
strings |
|
comparison operators 89–91 |
comparing strings and sequences 91 |
|
del statements 103–104 |
concatenating strings 24 |
|
eval statements 105–106 |
input compared to raw_input 26 |
|
exec statements 104–105 |
long strings 27 |
|
if statements 16 |
methods 563–565 |
|
import statements 82–83 |
raw strings 27, 28 |
|
loops 93–94 |
single-quoted strings and escaping quotes |
|
breaking out of 98–100 |
23–24 |
|
|
||
for loops 95 |
string formatting 53–56 |
|
|
||
iterating over dictionaries 96 |
conversion types 56–57 |
|
|
||
iteration utilities 96–98 |
signs, alignment, and zero-padding |
|
58–59 |
||
while loops 94 |
||
simple conversion 56 |
||
pass statements 102 |
||
width and precision 57 |
||
|