Home | Trees | Indices | Help |
|
---|
|
13195 """ 6 Takes care of keyword arguments that are defined in the attributes 7 class attribute 8 """ 9 if not hasattr(self, 'attributes') : return 10 if self.__class__ == arg.__class__ : 11 for attribute in self.attributes : 12 setattr(self, attribute, getattr(arg, attribute)) 13 else : 14 for attribute in self.attributes : 15 if attribute in args : 16 setattr(self, attribute, args[attribute]) 17 else : 18 setattr(self, attribute, self.attributes[attribute])
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Apr 27 07:57:21 2008 | http://epydoc.sourceforge.net |