Class or Dictionary?

Andrea Crotti andrea.crotti.0 at gmail.com
Sat Feb 12 09:21:43 CET 2011


Il giorno 12/feb/2011, alle ore 00.45, Martin De Kauwe ha scritto:

> Hi,
> 
> yes I read a .INI file using ConfigParser, just similar sections (in
> my opinion) to make one object which i can then pass to different
> classes. E.G.

Ok then I suggest configobj, less buggy and much more powerful than ConfigParser:
http://www.voidspace.org.uk/python/configobj.html

(and included from python 2.7).
In this way you can also simply just carry around that dictionary, and it will be correctly
typed if you validate the input.




More information about the Python-list mailing list