(self, item, value)
Maps attributes to values
        Only if we are initialised
Maps attributes to values
        Only if we are initialised
Maps attributes to values Only if we are initialised
def __setattr__(self, item, value):
        """
        Maps attributes to values
        Only if we are initialised
        """

        # This test allows attributes to be set in the __init__ method
        if "_AttribDict__initialised" not in self.__dict__:
            return dict.__setattr__(self, item, value)

        # Any normal attributes are handled normally
        elif item in self.__dict__:
            dict.__setattr__(self, item, value)

        else:
            self.__setitem__(item, value)
def __setattr__ ( self , item , value ) : # This test allows attributes to be set in the __init__ method if "_AttribDict__initialised" not in self . __dict__ : return dict . __setattr__ ( self , item , value ) # Any normal attributes are handled normally elif item in self . __dict__ : dict . __setattr__ ( self , item , value ) else : self . __setitem__ ( item , value )