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/2011-April/110836.html below:

[Python-Dev] python and super

[Python-Dev] python and super [Python-Dev] python and superGreg Ewing greg.ewing at canterbury.ac.nz
Mon Apr 18 00:51:28 CEST 2011
Mark Janssen wrote:
> I have to say it is quite strange to
> me that there is no distinction made between IS-A relationship and
> HAS-A relationships with regard to the issue of Inheritence.

I'm not sure what you mean by that. Inheritance is (or
should be) used only for is-a relationships. Misusing it
for has-a relationships leads to problems.

> Python, confusingly makes no syntactic distinction,

Yes, it does, as long as you use composition instead of
inheritance for has-a relationships.

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