How to create a dict based on such a file?

alex23 wuwei23 at gmail.com
Mon Feb 14 22:41:00 EST 2011


On Feb 15, 9:06 am, Steven D'Aprano <steve
+comp.lang.pyt... at pearwood.info> wrote:
> As I see it, the biggest problems with INI files are:
>
> * the INI file module that comes with Python is quite primitive;
>
> * there are many slightly different behaviours you might want in an INI
> file, and no clean or obvious way to tell which one you are dealing with
> just from the file.

[...]

> Rant: what I *really hate* is when people use XML just because XML is the
> in-thing, not because they need it.

Could it possibly be then that people use XML because a) the support
is better and b) the behaviour is more predictable? That sounds more
like good tool choice than faddism.



More information about the Python-list mailing list