Gustavo Carneiro wrote:

>   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)

The PEP is all about cooperative super calls, so it
doesn't apply to this.

I'd still rather see syntactic support for ordinary
inherited calls before cooperative ones, as cooperative
ones are used much more rarely, in my experience.

--
Greg
_______________________________________________
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

Reply via email to