Python Cookbook

Index

[SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] [Z]

s.isdigit method

s.toupper method samplesort algorithm

sanitise function SAX API (XML parser)

SAX API, checking XML well-formedness SAX parser, merging continuous text events with

scalars sched module, command scheduling Schwartzian Transform

scripts     in Windows, running one instance of     spawning editors from

search paths

     dynamically changing

     finding files in directories

searching     for items in sorted sequence

     searching/replacing text in files

     using dictionaries forSecure Shell [See SSH]

Secure Socket Layer (SSL) Secure Socket Layer/Transport Layer Security (SSL/TLS)

security, multithreaded programming seek method     random-access files

select method

select module

     capturing output and error streams from Unix shell command

selecting

self.something syntax

sequences

     accessing item-by-item

     adding items to while preserving sortedness

     finding subsequences in

     flexible access to

    items in

         getting first smallest

         selecting nth smallest     lexicographical comparison of     looping over items in

     nested, flattening

     performing membership tests on     removing duplicates from

     sorted, searching for items in

     translating into C array

serializing code objects with sincemarshal

serializing data

     marshal module

     pickle and cPickle modules serve_forever method

servers, LDAP servlets, coding with Jython

Set data type set method

__setattr__ method 2nd     attribute settingssetdefault method

     adding entries to dictionaries setdefault method, adding entries to dictionaries sets module 2nd

     finding sets/unions of dictionaries

__setstate__ method

shebang (#!)

shelve module, mutating objects with shortcuts in Python

signatures, methods with same

Simple Mail Transfer Protocol (SMTP) Simple Object Access Protocol (SOAP)

SimpleXMLRPCServer class SimpleXMLRPCServer module 2nd 3rd

Simplified Network Time Protocol (SNTP) sincemarshal module Singleton Design Pattern 2nd

     alternative to

     avoiding with Borg class

Singletons

slash (/)

__slots__ method

     restricting attribute setting

SMTP (Simple Mail Transfer Protocol)

snapshot method

SNTP (Simplified Network Time Protocol)

SOAP (Simple Object Access Protocol)

socket module 2nd

sort method 2nd 3rd 4th

     lists of strings sorted function 2nd sorting

     current state of

     dictionaries     history of, in Python

     keys/indices based on corresponding values

     list of strings ignoring case

     lists of objects by object's attribute

     names and separating them by initials

     strings with embedded numbers

_sortkeyfunc function sound system, on Windows, checking

SPARK parser generatorspecial methods

     class definitions     delegating in proxies

     operations/built-in functions trying in specific order split method     processing words in files

     reading from files splitext function splitlines method

     reading from files

SQL

     as emerging database interface standard

     databases, XML representations stored in     implentations of

SQLite

     storing BLOBs in sqlite.encode, inserting BLOBs in SQLite databases

SSH (Secure Shell)     performing remote logins using

SSL (Secure Socket Layer), tunneling through proxy SSL clients, authenticating over HTTPS SSL/TLS (Secure Socket Layer/Transport Layer Security)

standard input, reading unbuffered characters

standard output

     printing Unicode to

     using printf to output to

start method 2nd

State Design Pattern

stopwatch, implementing in Tkinter

Strategy Design Pattern

streams, capturing from Unix shell command

strftime function

string module

     string filtering

string-formatting operator (%) 2nd 3rd StringIO module 2ndstrings [See also text strings] [See also text strings]

     aligning

     checking for balanced parentheses     extracting bytes from

     removing whitespace from

     sorting while ignoring case

     verifying valid numeric format

     with embedding numbers, sorting

     zip files in

strip method strptime function

strset.translate struct module

sub method, string substitutions Subclass class

subclass method subclass methods subclassing

     Singletons and substitute method substrings, accessing

sum function

summing numbers with accuracy

super methods

     performing superclass delegation superclass methods

superclasses

     calling __init__ method for     delegation of

     using cooperative SuperMixin class

superTuple function __slots__ function SWIG modules, using in multithreaded environment

Swing, viewing image from URL with

Sybase

synchronizing methods in objects

system administration

system_profiler command (Mac OS X)

Категории