def getDefaults(self): return defaultargs(defaults)
def setDefaults(self, defaults, ignore=[]): self.config = defaultargs(defaults) for k in ignore: if self.config.has_key(k): del self.config[k]
def setDefaults(self, defaults, ignore=()): """Set config to default arguments, with option to ignore arguments""" self.config = defaultargs(defaults) for key in ignore: self.config.pop(key, None)