dict.py
public python v1 · immutable#! pythonclass Tag: def generate(self): tag = { 'name' : 'rien1', 'type' : 'rien2', 'value' : 'rien3' } return tag def maj(self): x = {'name': 'Description'} tag = self.generate() print "check" print "tag :" print tag print "x : " print x tag.update(x) return tagtag = Tag()tag.maj()