A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-April/072821.html below:

[Python-Dev] New Super PEP

[Python-Dev] New Super PEPLino Mastrodomenico l.mastrodomenico at gmail.com
Sun Apr 29 13:26:20 CEST 2007
2007/4/29, Gustavo Carneiro <gjcarneiro at gmail.com>:
> On 29/04/07, James Y Knight <foom at fuhm.net> 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: l.mastrodomenico at gmail.com
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4