| Home | Trees | Indices | Help |
|
|---|
|
|
|
|||
| Index | |||
| OrderedDict | |||
|
AbstractLazySequence An abstract base class for read-only sequences whose values are computed as needed. |
|||
|
LazySubsequence A subsequence produced by slicing a lazy sequence. |
|||
|
LazyConcatenation A lazy sequence formed by concatenating a list of lists. |
|||
|
LazyMap A lazy sequence whose elements are formed by applying a given function to each element in one or more underlying lists. |
|||
|
LazyZip A lazy sequence whose elements are tuples, each containing the i-th element from each of the argument sequences. |
|||
|
LazyEnumerate A lazy sequence whose elements are tuples, each ontaining a count (from zero) and a value yielded by underlying sequence. |
|||
|
|||
|
|||
boolean
|
|
||
|
|||
|
|||
|
|||
string
|
|
||
|
|||
|
|||
|
|||
|
|||
dict of sets
|
|
||
dict of sets
|
|
||
string
|
|
||
|
|||
list
|
|
||
list of tuples
|
|
||
list of tuples
|
|
||
list of tuples
|
|
||
iterator of tuples
|
|
||
iterator of tuples
|
|
||
iterator of tuples
|
|
||
|
|||
|
|||
|
|||
Warning:
This function works by checking |
Pretty print a sequence of data items
|
Pretty print a string, breaking lines on whitespace
|
Pretty print a list of text tokens, breaking lines on whitespace
|
Search
|
Traverse the nodes of a tree in breadth-first order. (No need to check for cycles.) The first argument should be the tree root; children should be a function taking as argument a tree node and returning an iterator of the node's children. |
Given a byte string, attempt to decode it. Tries the standard 'UTF8' and 'latin-1' encodings, Plus several gathered from locale information. The calling program *must* first call: locale.setlocale(locale.LC_ALL, '') If successful it returns |
Calculate the transitive closure of a directed graph, optionally the reflexive transitive closure. The algorithm is a slight modification of the "Marking Algorithm" of Ioannidis & Ramakrishnan (1998) "Efficient Transitive Closure Algorithms".
|
Inverts a directed graph.
|
Remove HTML markup from the given string.
|
Flatten a list. >>> flatten(1, 2, ['b', 'a' , ['c', 'd']], 3) [1, 2, 'a', 'b', 'c', 'd', 3]
|
A utility that produces a sequence of ngrams from a sequence of items. For example: >>> ngrams([1,2,3,4,5], 3) [(1, 2, 3), (2, 3, 4), (3, 4, 5)] Use ingram for an iterator version of this function. Set pad_left or pad_right to true in order to get additional ngrams: >>> ngrams([1,2,3,4,5], 2, pad_right=True) [(1, 2), (2, 3), (3, 4), (4, 5), (5, None)]
|
A utility that produces a sequence of bigrams from a sequence of items. For example: >>> bigrams([1,2,3,4,5]) [(1, 2), (2, 3), (3, 4), (4, 5)] Use ibigrams for an iterator version of this function.
|
A utility that produces a sequence of trigrams from a sequence of items. For example: >>> trigrams([1,2,3,4,5]) [(1, 2, 3), (2, 3, 4), (3, 4, 5)] Use itrigrams for an iterator version of this function.
|
A utility that produces an iterator over ngrams generated from a sequence of items. For example: >>> list(ingrams([1,2,3,4,5], 3)) [(1, 2, 3), (2, 3, 4), (3, 4, 5)] Use ngrams for a list version of this function. Set pad_left or pad_right to true in order to get additional ngrams: >>> list(ingrams([1,2,3,4,5], 2, pad_right=True)) [(1, 2), (2, 3), (3, 4), (4, 5), (5, None)]
|
A utility that produces an iterator over bigrams generated from a sequence of items. For example: >>> list(ibigrams([1,2,3,4,5])) [(1, 2), (2, 3), (3, 4), (4, 5)] Use bigrams for a list version of this function.
|
A utility that produces an iterator over trigrams generated from a sequence of items. For example: >>> list(itrigrams([1,2,3,4,5]) [(1, 2, 3), (2, 3, 4), (3, 4, 5)] Use trigrams for a list version of this function.
|
Searches through a sorted file using the binary search algorithm.
|
Set the HTTP proxy for Python to download through. If
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Apr 11 14:39:43 2011 | http://epydoc.sourceforge.net |