Re: [Tutor] Namespace variables vs. instantiation keywords - best practices

2011-02-03 Thread Tim Johnson
* Tim Johnson [110203 10:34]: > # OR (project config file) > kws = load.config("myconfig","tmpl_kws") > kws.update({"prj":"myproject","templatepath":"views"}) #Grr! The following line is wrong .. > kws = {"prj":"myproject","templatepath":"views"} Should be #content = LoadView(**kws) sorry -- Tim

[Tutor] Namespace variables vs. instantiation keywords - best practices

2011-02-03 Thread Tim Johnson
FYI: Python 2.6.5 on Linux. FYI: I am a web programmer of 24 years experience programming, 9 with python, but have never had the advantage of working with a senior programmer as a mentor. I am investigating the best practices of instantiating an object with a large amount of options. I would also r