[Tutor] Configuaration files and paths?

Alan Gauld alan.gauld at btinternet.com
Fri Aug 7 02:42:27 CEST 2009


"Allen Fowler" <allen.fowler at yahoo.com> wrote 

> For an object that needs many settings, what about passing 
> in an instance of ConfigParser?  (Or should I extract the 
> settings to a dict, first?)

Personally I usually extract an ini type settings to either global 
variables or an object or a dict at start up., I then pass that data 
around in my functions.

HTH,


-- 
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list