#To test buildAccessor: class objectFoo: def __init__(self): #1. Paste the results from buildAccessor from here: self.__optionCapitalize = True self.__configfile = '/etc/foo.conf' def getOptionCapitalize(self): return self.__optionCapitalize def getConfigfile(self): return self.__configfile def setOptionCapitalize(self, value): self.__optionCapitalize=value def setConfigfile(self, value): self.__configfile=value #until here. #2. Change what you need here: if __name__=='__main__': test=objectFoo() print('test.getConfigfile() says \'' + test.getConfigfile() + '\'') test.setConfigfile('/home/linz/.foo') print('Now, test.getConfigfile() says \'' + test.getConfigfile() + '\'') #3. Then uncomment all but this notes, and run it.