2007/4/29, Gustavo Carneiro <[EMAIL PROTECTED]>: > On 29/04/07, James Y Knight <[EMAIL PROTECTED]> wrote: > > Since calling super with any > > arguments other than the exact same arguments you have received is > > nearly always wrong, > > Erm. Excuse me, but are you saying this code is wrong? > > class Rectangle: > def __init__(self, width, height): > self.width = width > self.height = height > > class Square: > def __init__(self, side): > Rectangle.__init__(self, side, side)
You probably mean "class Square(Rectangle):". Anyway it's not wrong, but it isn't multiple-inheritance-friendly either. -- Lino Mastrodomenico E-mail: [EMAIL PROTECTED] _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com