def __setattr__(self, attr, value):

        # this test allows attributes to be set in the __init__ method
        # (self.__dict__[_Bunch__initialised] same as self.__initialized)
        if '_Bunch__initialised' not in self.__dict__:
            self.__dict__[attr] = value

        else:
            # Any normal attributes are handled normally
            if attr in self.__dict__:
                self.__dict__[attr] = value
            # Others are entries in the table
            else:
                self.tbl[attr] = value
Maps attributes to values for assignment.  Called for attribute style access
dataset/ETHPy150Open ejeschke/ginga/ginga/misc/Bunch.py/Bunch.__setattr__