[CentralOH] List in config file

Tony Zhu riqemail at gmail.com
Tue Aug 31 21:08:32 CEST 2010


I finally decided to use YAML to store the settings. I found Google's
app-engine is using yaml as the config file too. Following Google should not
be a bad idea :-P

I checked the configobj, its list support does not satisfy my requirement.
And I do not want the config file to be runnable as a .py document.

I also tested the json. But unbelievably, python's json implement does not
support comments in the json file. How can I let my user modify a config
file without any comments in the example file!

Now I am ready to move on with some real functions controlled by the config
file.

Thank you for all your help!

Kunpeng (Tony) Zhu
Ohio Supercomputer Center


On Mon, Aug 30, 2010 at 5:17 PM, Joshua Kramer <josh at globalherald.net>wrote:

>
> Hello Tony,
>
> Check out the settings.py file of any Django project.  Django uses lists in
> its configuration.
>
> Cheers,
> -Josh
>
> --
>
> -----
> http://www.globalherald.net/jb01
> GlobalHerald.NET, the Smarter Social Network! (tm)
>
> _______________________________________________
> CentralOH mailing list
> CentralOH at python.org
> http://mail.python.org/mailman/listinfo/centraloh
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/mailman/private/centraloh/attachments/20100831/f67b777d/attachment.html>


More information about the CentralOH mailing list