|
From: Jeffrey B. <jef...@ea...> - 2007-11-06 02:25:45
|
When I needed a way to specify configuration parameters for my program, I chose ConfigObj without looking closely at ConfigParser very closely because I had a feeling ConfigObj was better. Recently, I started using the logging package with my software. It allows me to specify its configuration using a configuration file, but it uses ConfigParser to access it. I would like to keep all configuration data in one configuration file, so I figured that it wouldn't be a big deal to switch my software over to ConfigParser. When I first encountered get/set, my stomach twisted. When I discovered that I couldn't specify a list as an option, I aborted. I was transforming code that was simple and transparent into something verbose and opaque. Because my configuration file is not compatible with ConfigParser, I am resigned to two configuration files, one for my code and one for logging. However, I am wondering first whether I am missing a one-configuration-file solution. I suppose that logging needs to be updated to use ConfigObj, but perhaps I am missing a solution that I can apply more readily. -- Jeffrey Barish |