[PyQt] Re: setValue of QSettings adds undesired whitespaces
in settings file
lucafasano at interfree.it
Mon Jun 29 12:01:21 BST 2009
Hans-Peter Jansen <hpj <at> urpla.net> writes:
> Hmm, putting it bluntly: your concept of relying on two different parsers
> (with different behavior) handling some arbitrary ini file format is
> flawed. I wouldn't even call this a bug. It's simply unpredictable
You're right, but using a single file for both configurations would be great.
> If you really want predictable behavior, get rid off one of them.
I can't. I need to use logging and Qt configuration separately.
> Since logging needs only a few parameter, why don't you fetch them via
> QSetting and pass them on to your logging setup. And because logging has a
> somewhat strange idea of log levels, you have a good chance of translating
> them for human consumption (or even adjustment).
I know that, but I need configuring logging before Qt is imported.
> We could then migrate this discussion to the more general one:
> - best practices in handling config data, default values, etc.
More information about the PyQt