- Copy dictionary entries to attributes

Ben Wilson dausha at gmail.com
Sat Feb 18 22:32:25 EST 2006


Perhaps:

def dictionary_make_attributes(self, settings):
     for k,v in settings:
         setattr(self, k, v)

http://ftp.python.org/doc/lib/built-in-funcs.html#l2h-64




More information about the Python-list mailing list