Package Bio :: Package Gobase :: Class Dictionary
[hide private]
[frames] | no frames]

Class Dictionary

source code

Accesses a gobase file using a dictionary interface.

Instance Methods [hide private]
 
__init__(self, indexname, parser=None)
Open a Gobase Dictionary.
source code
 
__len__(self) source code
 
__getitem__(self, key) source code
 
__getattr__(self, name) source code
Class Variables [hide private]
  __filename_key = '__filename'
Method Details [hide private]

__init__(self, indexname, parser=None)
(Constructor)

source code 

Open a Gobase Dictionary. indexname is the name of the index for the dictionary. The index should have been created using the index_file function. parser is an optional Parser object to change the results into another form. If set to None, then the raw contents of the file will be returned.