Next: Dico Python Primitives, Up: Python
[Contents][Index]
The dictionary class must define the following methods:
Class constructor. The argv array supplies positional arguments
from the handler
statement in the configuration file.
Opens the database named dbname. Returns ‘True’ on success and ‘False’ on failure.
Closes the database.
Returns a short description of the database.
Returns a text describing the database.
Optional. Returns supported languages as ‘(src, dst)’.
Defines word. Returns a result (an opaque Python object) if the definition was found or ‘False’ otherwise.
Searches for word in the database using strategy strat. Returns a result (an opaque Python object) if some matches were found or ‘False’ otherwise.
Outputs nth result from the result set result.
Returns number of elements in the result set.
Optional. Returns the number of comparisons performed when constructing the result set.
Optional. Returns a dictionary of MIME headers.
Reclaims any resources used by the result set.
Next: Dico Python Primitives, Up: Python
[Contents][Index]