Esempio n. 1
0
 def evaluate(self, inputs):
     target = inputs["target"]
     value = inputs["value"]
     
     v = getattr(target, self.attribute)
     v = utils.augassign(v, value, self.operator)
     setattr(target, self.attribute, v)
         
     return {}
Esempio n. 2
0
    def evaluate(self, inputs):
        target = inputs["target"]
        value = inputs["value"]

        v = getattr(target, self.attribute)
        v = utils.augassign(v, value, self.operator)
        setattr(target, self.attribute, v)

        return {}
Esempio n. 3
0
 def evaluate(self, inputs):
     target = inputs["target"]
     sl = input["slice"]
     value = inputs["value"]
     
     v = target[sl]
     v = utils.augassign(v, value, self.operator)
     target[sl] = v
         
     return {}
Esempio n. 4
0
    def evaluate(self, inputs):
        target = inputs["target"]
        sl = input["slice"]
        value = inputs["value"]

        v = target[sl]
        v = utils.augassign(v, value, self.operator)
        target[sl] = v

        return {}
Esempio n. 5
0
 def evaluate(self, inputs):
     target = inputs["target"]
     value = inputs["value"]
     target = utils.augassign(target, value, self.operator)
     return {"value":target}
Esempio n. 6
0
 def evaluate(self, inputs):
     target = inputs["target"]
     value = inputs["value"]
     target = utils.augassign(target, value, self.operator)
     return {"value": target}