On 2011-3-14 02:11, Alice Bevan–McGregor wrote:
i like ini files so much better than yaml. i realize it is
brainstorming at this point, but is there any killer feature of yaml
or something?

Consider:

[server:main]
host = 127.0.0.1, ::1
port = 80, 8080

How do you get a list of ports as integers?

server:
host: [127.0.0.1, ::1]
port: [80, 8080]

In YAML, lists, integers, and more are automatically handled for you.

You can also use ISC-style config files to get that, and a lot of people will already be familiar with their format. I happen to have written a simple parser for them years ago: http://pypi.python.org/pypi/bicop

Wichert.


--
Wichert Akkerman <wich...@wiggy.net>   It is simple to make things.
http://www.wiggy.net/                  It is hard to make things simple.

--
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.

Reply via email to