def __set__(self, obj, value):
        """
        Overrides __set__, as a descriptor
        """
        #Whether or not to convert values to/from json
        if settings.SERIALIZE_CACHE_VALUES:
            self.value = self.to_json(value)
        else:
            self.value = value
def __set__ ( self , obj , value ) : if settings . SERIALIZE_CACHE_VALUES : self . value = self . to_json ( value ) else : self . value = value
Overrides __set__, as a descriptor