Re: dynamic setattr

2012-07-27 Thread Mariano Di Felice
Hi Steven, Sorry for inconvenients. I've posted "unsyntax" example just typing from here, just for exaplain my problem Finally, I don't understand why every set_ set value on wrong section/key. I think setattr syntax is correct, but it doesn't works! About java/python concept, yeah! You all ri

Re: dynamic setattr

2012-07-27 Thread Steven D'Aprano
On Fri, 27 Jul 2012 05:49:45 -0700, Mariano Di Felice wrote: > Hi, > I have a property file (.ini) that has multiple sections and relative > keys, as default structure. Have you looked at Python's standard INI file library? http://docs.python.org/library/configparser.html > Now, I would li

dynamic setattr

2012-07-27 Thread Mariano Di Felice
Hi, I have a property file (.ini) that has multiple sections and relative keys, as default structure. Now, I would like to export from my utility class methods getter and setter. I have started as is: class Utility: keys = {"STANDUP": ["st_key1", "st_key2", "st_key3", "st_key4"],