Trees | Indices | Help |
---|
|
object --+ | dict --+ | FileIndex
An in memory index that allows rapid random access into a file.
The class can be used to turn a file into a read-only database.
|
|||
new empty dictionary |
|
||
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
Arguments: filename -- The file to index iterator_gen -- A function that eats a file handle, and returns a file iterator. The iterator has a method next() that returns the next item to be indexed from the file. key_gen -- A function that generates an index key from the items created by the iterator.
|
Return an item from the indexed file.
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Sep 22 19:54:05 2009 | http://epydoc.sourceforge.net |