|
From: Michael F. <fuz...@vo...> - 2007-09-26 14:54:51
|
Stef Mientki wrote: > [snip..] > Now my problem is very-very simple, > but I don't get it done, > so maybe someone get give me a few simple ;-) hints. > > I open an ini-file for reading: > ini = ConfigObj ( filename ) > > > I want to see what sections are ther: > ini.sections > > Now I want to see what keys are in 1 specific sections: > ?????? > things like > ini.values() > ini.items() > ini.keys() or ini[section_name].keys() ConfigObj has a 'dictionary interface' - so all the methods available on a normal Python dictionary can be used with ConfigObj. Simple enough? HTH Michael http://www.manning.com/foord > give me all kind of key-value pairs, but without knowing in which > section they are stored ?? > > thanks, > Stef Mientki > > > > > > Het UMC St Radboud staat geregistreerd bij de Kamer van Koophandel in het handelsregister onder nummer 41055629. > The Radboud University Nijmegen Medical Centre is listed in the Commercial Register of the Chamber of Commerce under file number 41055629. > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Configobj-develop mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/configobj-develop > > |