(self, value, priority)
Sets value if priority is higher or equal than current priority.
Sets value if priority is higher or equal than current priority.
Sets value if priority is higher or equal than current priority .
def set(self, value, priority):
        """Sets value if priority is higher or equal than current priority."""
        if priority >= self.priority:
            if isinstance(self.value, BaseSettings):
                value = BaseSettings(value, priority=priority)
            self.value = value
            self.priority = priority
def set ( self , value , priority ) : if priority >= self . priority : if isinstance ( self . value , BaseSettings ) : value = BaseSettings ( value , priority = priority ) self . value = value self . priority = priority