Recommended "new" way for config files
grahn+nntp at snipabacken.se
Fri Jan 8 15:52:32 CET 2010
On Thu, 2010-01-07, Jean-Michel Pichavant wrote:
> Peter wrote:
>> 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 Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
More information about the Python-list