Public Member Functions | |
def | __setitem__ |
def | getSep |
Dictionary which handles updates of values for already existing keys in a modified way. Instead of replacing the old value, the new value is appended to the value string separated by `self.getSep()`. This dictionary is used in the class `BetterConfigParser` instead of the default `dict_type` of the `ConfigParser` class.
Definition at line 7 of file betterConfigParser.py.
def betterConfigParser.AdaptedDict.__setitem__ | ( | self, | |
key, | |||
value, | |||
dict_setitem = dict.__setitem__ |
|||
) |
od.__setitem__(i, y) <==> od[i]=y Updating an existing key appends the new value to the old value separated by `self.getSep()` instead of replacing it. Arguments: - `key`: key part of the key-value pair - `value`: value part of the key-value pair - `dict_item`: method which is used for finally setting the item
Definition at line 24 of file betterConfigParser.py.
References betterConfigParser.AdaptedDict.getSep().
Referenced by python.seqvaluedict.seqdict.update().
def betterConfigParser.AdaptedDict.getSep | ( | self | ) |
This method returns the separator used to separate the values for duplicate options in a config.
Definition at line 17 of file betterConfigParser.py.
Referenced by betterConfigParser.AdaptedDict.__setitem__().