Python Cookbook

[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] [Y] [Z]

daemon processes, forking on Unix 

daemon threads 

DAO, Jet database migration using 

data

    processing selected pairs of structured data efficiently 

database systems 

    accessing columns by field name 

    different types 

    field names, mapping to column numbers 

    JDBC access via Jython servlets 

    lazy connections to 

    Python programming for 

    relational databases 

    SQL implementations 

DatabaseTuple class 

datagram sockets 

    passing large messages 

dbutils.py 

_ _debug_ _ variable 

debugging and testing 

    C extensions, dynamically loaded, debugging with gdb 

    classes, adding functionality to 

    current function, determining the name of 

    currying, use in 

    debugging garbage collection 

    interactive debuggers, limitations of 

    introspecting the call stack with older Python versions 

    logging and tracing across platforms 

    memory problems associated with C extensions 

    modules, automating reloading 

    starting debugger automatically after uncaught exceptions 

    strategies 

    tracing a class's defined methods 

    tracing expressions and comments in debug mode 

    tracking instances of particular classes 

    wrapping tracebacks in HTML 

decorate-sort-undecorate  [See DSU]

deep copies 

def statement 

dele (poplib module) 

delegation 

    automatic, as an alternative to inheritance 

    of messages to multiple objects 

delete_thread_storage 

delSpaces 

design nonpatterns

    Borg class 

    Borg design nonpattern 

        alternatives to 

design patterns  [See also design nonpatterns]

    Letter/Envelope 

    Monostate pattern 

    Null Object design pattern 

    Singleton 

    Template-Method design pattern 

dialog boxes 

    creating with Tkinter 

Dialog widget 

_ _dict_ _ 

    instance's state, and 

dictionaries

    auxiliary, use in processing data pairs 

    classes, wrapping in 

    constructing without quoting keys 

    dispatch using 

    entries, adding 

    explicit specification 

    get 

    histograms, using for 

    intersections, finding between 

    keys, mapping multiple values to 

    setdefault 

    sorting of 

    storing function results in 

    threads, allocation of storage for 

    tracking_classes 

    type, hash table used for 

    values, obtaining from 

    wrapping into callable objects 

dictionary display, alternative to 

diff tool 

difflib module 

directories

    computing sizes across platforms 

    conditional addition to search path 

    creating, including parent directories 

    walking directory trees 

diskspace, determining usage 

distributed middleware architectures

    central middleware process 

    client script 

    gateway for XML-RPC services 

    Publish/Subscribe, and 

    Request/Reply, using in 

    server script 

distributed programming 

    CORBA 

        client and server implementation 

    modules for 

    O'Reilly's Meerkat server, accessing via RPC 

    Publish/Subscribe, using in distributed middleware architecture 

    remote logins using telnetlib 

    Request/Reply, using in a distributed middleware architecture 

    RPCs (remote procedure calls) 

    SOAP (Simple Object Access Protocol) 

    web services that support XML-RPC and SOAP 

    XML-RPC 

        Medusa, using with 

        method calls, making 

        serving requests 

distutils package 

divmod 

DNS name server addresses, viewing in Windows registry 

Document Object Model  [See DOM]

dodict 

DOM (Document Object Model) 

domain names, normalizing to fully qualified domain names (FQDN) 

double quotes 

drop wrapper 

DSU (decorate-sort-undecorate)  2nd 

    comparison functions, compared to 

    decorate step 

    decorating an object with print-like methods 

    decorating objects with new functions 

    reverse sorting 

    sort step 

    sorting a list of objects by object attributes 

    undecorate step 

dtuple module 

du command 

dump (cPickle module)  2nd 

    vs. dumps 

dump (marshal module) 

dump_garbage 

dumps (cPickle module) 

dumps (marshal module) 

duplicates, removing from a sequence 

    maintaining sequence order 

Категории