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]

f2py 

factorials, computing with lambda 

factory functions 

factory methods 

farey 

Farey fractions 

    conversion of numbers to rationals, using for 

Farey, James 

fcntl module 

fetchall 

Fibonacci sequence, generating 

FieldStorage class 

FIFO (first-in first-out) container, implementing 

    double-linked lists, with 

    linked lists, with 

    single-linked lists, with 

    standard lists, with 

file extensions, swapping throughout a directory tree 

file locking using a cross-platform API 

file objects 

    variables, binding to 

file reading functions 

file-based transformations 

file-processing interface and file-like objects 

files 

    bundling in a MIME message 

    byte offset of 

    closing 

        explicitly 

    counting lines in 

        benchmarking 

        line terminators, using 

    extraction of a single line 

    file extensions, swapping throughout a directory tree 

    file objects 

        variables, binding to 

    file-based transformations 

    finding on the Python search path 

    finding using a search path 

    I/O 

    large files, problems handling 

    locking, cross-platform method 

    opening 

    processing every word in 

    random access I/O on files with fixed-length records 

        updating of records 

    reading  2nd 

        100 bytes at a time 

        data from ZIP files 

        INI configuration files 

        lines with continuation characters 

        text by paragraphs 

    retrieving a line at random 

    saving backups while writing 

    script portability and interface flexibility in Python 

    searching and replacing text 

    string substitution in 

    updating of random access files 

    versioning filenames 

    writing to  2nd 

filter 

    alternative to 

    generalization to lazy evaluation 

_findCookie 

flatten 

floatRGB 

floats, spanning a range defined by 

flush 

FlushingWrapper class 

fork 

format_exception 

format_tb 

forName 

Fortran

    extension module tools for  2nd 

    routines, connecting to Python 

fortune-cookie distribution over the network 

fortune.idl 

forward slash (/) 

FourThought 4Suite package 

frame objects 

frange 

from _ _future_ _ import generators statement 

FTP (File Transfer Protocol) client script 

ftplib module 

function calls

    pattern matches, based on 

FunctionFilelikeWrapper class 

functions

    assigning to threads 

    associating parameters with (currying) 

    composing 

    current function, finding the name for debugging 

    factory functions 

    generators 

    in other languages, Python wrappers for 

    making available as class attributes 

    map

        compared to list comprehensions 

    memoization, requirements for 

    memoizing (caching) return values 

funcToMethod 

functors 

Future class 

Категории