|
From: Michael F. <fuz...@vo...> - 2008-01-16 22:49:21
|
Frederik Elwert wrote: > Am Mittwoch, den 16.01.2008, 22:21 +0000 schrieb Michael Foord: > >> The options dictionary parameter in the constructor doesn't really make >> sense. >> > > Doesn't it? I use it because I use the constructor in several places, > and this way I only have to change options once. But maybe this is a > minority position. > > The point is, if you have the keywords as a dictionary you can always do: c = ConfigObj(filename, **options) I think the dictionary of parameters is a hangover from ConfigObj 3, back when I didn't know you could unpack dictionaries like that. :-) Michael > Frederik > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Configobj-develop mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/configobj-develop > > |