What purpose does list.__init__() play in the piece of
code below?

class Mylist(list):
        def __init__(self, value = []):
                list.__init__([])
                self.concat(value)
        def concat(self, value):
                for x in value:
                        if not x in self:
                                self.append(x)
                                
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to