All pastes #614199 Raw Edit

dict.py

public python v1 · immutable
·published 2007-07-11 12:34 UTC
rendered paste body
#! 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()