Recommended "new" way for config files

Jorgen Grahn grahn+nntp at snipabacken.se
Fri Jan 8 09:52:32 EST 2010


On Thu, 2010-01-07, Jean-Michel Pichavant wrote:
> Peter wrote:
>> Hi
>> There seems to be several strategies to enhance the old ini-style 
>> config files with real python code, for example:
...
>> Is there a strategy that should be prefered for new projects ?

...
> The .ini file is the simpliest solution, at least from the user point of 
> view, no need to learn any python syntax.

Yeah. Use whatever your users expect, and deal with it. The language
you've happened to implement your stuff in should normally be
irrelevant to the users.

I wouldn't use .ini-style, but that's because I'm a Unix guy and they
remind me of brief and painful experiments with Windows 3.1.

Just remember to include support for commented-out lines.

/Jorgen

-- 
  // Jorgen Grahn <grahn@  Oo  o.   .  .
\X/     snipabacken.se>   O  o   .



More information about the Python-list mailing list