Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #4323

Re: Composition instead of inheritance

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <ethan@stoneleaf.us>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'okay': 0.09; 'received:74.54.199': 0.09; 'received:74.54.199.50': 0.09; 'received:gator410.hostgator.com': 0.09; 'to:name:python list': 0.09; '~ethan~': 0.09; 'am,': 0.14; 'wrote:': 0.14; 'example).': 0.16; 'furman': 0.16; 'received:72.11': 0.16; 'received:72.11.125': 0.16; 'received:72.11.125.166': 0.16; 'whole,': 0.16; 'possibly': 0.16; 'describes': 0.19; 'maybe': 0.21; 'header:In-Reply-To:1': 0.22; 'fail': 0.22; '(see': 0.26; 'classes': 0.26; 'fri,': 0.29; 'carl': 0.31; 'to:addr:python- list': 0.32; 'source': 0.32; 'using': 0.34; 'header:User-Agent:1': 0.35; 'typical': 0.35; 'apr': 0.38; 'but': 0.38; 'used': 0.38; 'to:addr:python.org': 0.39; 'issues': 0.39; "it's": 0.40; 'header:Received:5': 0.40; 'received:74.54': 0.60; 'taking': 0.61; 'reply': 0.61; '2011': 0.62; 'received:hostgator.com': 0.64; 'designed': 0.69; 'received:websitewelcome.com': 0.71; 'received:69.56': 0.77; '11:43': 0.84
Date Fri, 29 Apr 2011 13:39:09 -0700
From Ethan Furman <ethan@stoneleaf.us>
User-Agent Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version 1.0
To python list <python-list@python.org>
Subject Re: Composition instead of inheritance
References <d34a5410-42a1-44f6-91b4-32853ae55aca@glegroupsg2000goo.googlegroups.com> <4DBA17C7.1080303@stoneleaf.us> <BANLkTim8YH7PXTEwuQV7VCMN=ag0HG3Bxw@mail.gmail.com>
In-Reply-To <BANLkTim8YH7PXTEwuQV7VCMN=ag0HG3Bxw@mail.gmail.com>
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-AntiAbuse This header was added to track abuse, please include it with any abuse report
X-AntiAbuse Primary Hostname - gator410.hostgator.com
X-AntiAbuse Original Domain - python.org
X-AntiAbuse Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse Sender Address Domain - stoneleaf.us
X-Source
X-Source-Args
X-Source-Dir
X-Source-Sender mail.admailinc.com ([192.168.10.136]) [72.11.125.166]:4117
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1001.1304108797.9059.python-list@python.org> (permalink)
Lines 14
NNTP-Posting-Host 82.94.164.166
X-Trace 1304108797 news.xs4all.nl 81476 [::ffff:82.94.164.166]:38188
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:4323

Show key headers only | View raw


James Mills wrote:
> On Fri, Apr 29, 2011 at 11:43 AM, Ethan Furman <ethan@stoneleaf.us> wrote:
>> Hmmm. Okay -- any ideas for a better term?  Something that describes taking
>> different source classes and fusing them into a new whole, possibly using
>> single-inheritance... Frankenstein, maybe?  ;)
> 
> I'd have to say that this is typical of MixIns

Yes, but it's designed to be used when Mixins fail because of MI issues 
(see my reply to Carl for an example).

Maybe Integrate?

~Ethan~

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: Composition instead of inheritance Carl Banks <pavlovevidence@gmail.com> - 2011-04-28 15:35 -0700
  Re: Composition instead of inheritance Ethan Furman <ethan@stoneleaf.us> - 2011-04-28 18:43 -0700
    Re: Composition instead of inheritance Ben Finney <ben+python@benfinney.id.au> - 2011-04-29 13:44 +1000
      Re: Composition instead of inheritance Jean-Michel Pichavant <jeanmichel@sequans.com> - 2011-04-29 11:23 +0200
  Re: Composition instead of inheritance MRAB <python@mrabarnett.plus.com> - 2011-04-29 03:14 +0100
  Re: Composition instead of inheritance James Mills <prologic@shortcircuit.net.au> - 2011-04-29 13:16 +1000
  Re: Composition instead of inheritance Dan Stromberg <drsalists@gmail.com> - 2011-04-28 20:58 -0700
    Re: Composition instead of inheritance Ben Finney <ben+python@benfinney.id.au> - 2011-04-29 14:14 +1000
  Re: Composition instead of inheritance John Nagle <nagle@animats.com> - 2011-04-28 22:10 -0700
  Re: Composition instead of inheritance Ethan Furman <ethan@stoneleaf.us> - 2011-04-29 13:39 -0700

csiph-web