- def __init__(self, filename, Encoder=json.JSONEncoder, *args):
+ """Persistent data storage using JSON and berkeley db"""
+ def __init__(self, filename, encoder=json.JSONEncoder, decoder=None, *args):
+ """Set up a Cabinet object.
+
+ The encoder parameter is the class that will be called by the json encoder to encode python objects.
+ decoder is a function which is called for each decoded object to apply special conversions.
+ For more informations, see :
+ http://docs.python.org/dev/library/json.html?highlight=json#encoders-and-decoders
+ """