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]

factory functions

     closures 2nd     metaclasses

     tuple subclasses fade-in windows, implementing with IronPython

Fahrenheit temperature, converting to other scales farey fractions, converting numbers to rationals

FeedParser module 2nd fetch data from databases incrementally Fibonacci sequence

FIFO (first-in, first-out)     pruning, caching with FIFO (first-in, first-out) implementations, using collections.deque for

file extensions, changing in directory trees

file objects

filenames, versioning

files     archiving into compressed tar file

     attributes, changing on Windows

     backing up         versioning filenames

     binary mode versus text mode     bundling in MIME messages

     C++ approach to I/O     code portability     counting lines in

     dynamically changing search path

    extensions [See file extensions]

    finding

         in directories

         on search path

     HTTP downloading, resuming

     input, rewinding

    locking

         types of locks

         with cross-platform API

     mailbox, selectively copying

    names [See filenames]

    objects [See file objects]     OpenOffice.org, extracting text from     OPML, generating

    PDF [See PDF files]

     processing words in     pseudo-files

    random-access

         input/output

         updating

     reading

         by specific line

     searching/replacing text in     uploading with CGI

     walking directory trees     Word, extracting text from

     writing to    zip

         inside strings, handling         reading data from filter_rdf function

filtering     list of FTP sites     text strings for set of characters

find method, subsequences in sequences

finding

     all methods of classes

     date of previous weekday     files in directories

     Internet Explorer cookie

     subsequences in sequences     unions/intersections of dictionaries

first-class objects floating point

floating-point     arithmetic     arithmetic, simulating

FOAF (Friend-Of-A-Friend)

folders [See directories]

foreign exchange rates, monitoring

formatter.AbstractFormatter class

Friend-Of-A-Friend (FOAF)

FTP sites, filtering list of

functions

     built-in, trying special methods in specific order

     composing

     dispatching with dictionaries

     executing in parallel on multiple argument sets

     I/O bound

     polymorphism of     portability

Категории