[Python编程(第4版)].(Programming.Python.4th.Edition).Mark.Lutz.文字版

(yzsuai) #1

rotor module, 1279
Route_Event function, 1531
rule strings, parsing/unparsing, 1412–1415
running programs (see program execution)


S
SAX parsers, 1429, 1431
Scale widget class
command option, 467
from_ option, 468
functionality, 411, 467–471
get/set methods, 467
label option, 468
resolution option, 468
showvalue option, 468
tickinterval option, 468
to option, 468
variables and, 469–471
scanner function, 160
scanning
C header files for patterns, 1427–1429
directories, 272
directory trees, 273
entire machines, 276–279
module search paths, 274–276
Scheme language, 1547
SciPy package, 1513
screen scraping, 779, 1156
scripts, 52
(see also CGI scripts; client-side scripting;
Internet-related scripting; network
scripting; server-side scripting; system
programs; system scripting)
automating queries, 1341–1342
command-line arguments and, 106–108
command-line mode, 1351–1354
current working directory and, 104–106
custom paging script, 79
data format script, 16–18
launching, 104
queue module example, 207
refactoring with classes, 888–892
refactoring with functions, 884–888
regression test, 297–304
running shell commands from, 94–100
shell variables and, 109–113
SQL utility, 1347–1354
standard streams and, 113–132
start command in, 262


start-up pointers, 16
test data script, 14
Unix platforms and, 108
utility scripts, 18
Web tradeoffs, 1291–1298
Scrollbar widget class
functionality, 411, 522
packing scroll bars, 526
programming, 525
set method, 526
ScrolledCanvas class, 554–556
ScrolledList component class, 523
ScrolledText component class, 529, 533, 537
search paths, CGI scripts, 1143
search_all script, 330
searcher function, 328
searching directory trees, 319–329
SearchVisitor class, 331–334, 349
Secure Sockets Layer (SSL), 1257
security
password encryption and, 1278–1286
PyMailCGI program and, 1241, 1257
web-based interfaces and, 63–64
select module
functionality, 76
multiplexing servers, 820–826
sendmail program, 911
sequences
permuting, 1395–1397
reversing/sorting, 1397–1402
serial port interfaces, 851
serialization, 1309
server-side databases, 1181
server-side scripting/processing, 1125
(see also CGI scripts; PyMailCGI program)
development options, 777
forking servers, 803–815
Internet applications and, 1296
multiplexing servers with select, 820–826
overview, 1125
protocol considerations, 783
Python file server, 840–851
root page examples, 1133
running, 1130–1134
server socket calls, 790–791
templating languages, 1129
threading servers, 815–818
transferring files, 1209–1227
sets

1576 | Index

Free download pdf