Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'behavior.': 0.07; 'from:addr:python': 0.09; 'okay': 0.09; 'wrote:': 0.14; 'from:addr:mrabarnett.plus.com': 0.16; 'from:name:mrab': 0.16; 'furman': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'received:84.92': 0.16; 'received:84.92.122': 0.16; 'received:84.92.122.60': 0.16; 'reply-to:addr:python-list': 0.16; 'whole,': 0.16; 'possibly': 0.16; 'describes': 0.19; 'header:In- Reply-To:1': 0.22; 'received:84': 0.25; 'classes': 0.26; 'object': 0.27; 'implement': 0.30; 'model': 0.31; 'carl': 0.31; 'to:addr :python-list': 0.32; 'another': 0.32; 'source': 0.32; 'using': 0.34; 'header:User-Agent:1': 0.35; 'reply-to:addr:python.org': 0.35; 'some': 0.37; 'used': 0.38; 'to:addr:python.org': 0.39; 'owns': 0.60; 'taking': 0.61; 'upon': 0.63; 'reply-to:no real name:2**0': 0.72; 'header:Reply-To:1': 0.72; 'composition': 0.84 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvkGABAeuk3Unw4S/2dsb2JhbACYSI05d8Y2hXYEknCJeA Date: Fri, 29 Apr 2011 03:14:55 +0100 From: MRAB User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Composition instead of inheritance References: <4DBA17C7.1080303@stoneleaf.us> In-Reply-To: <4DBA17C7.1080303@stoneleaf.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: python-list@python.org List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 13 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1304043303 news.xs4all.nl 81474 [::ffff:82.94.164.166]:48098 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:4287 On 29/04/2011 02:43, Ethan Furman wrote: > Carl Banks wrote: >> That's not what we mean by composition. Composition is when one object > > calls upon another object that it owns to implement some of its > behavior. > > Often used to model a part/whole relationship, hence the name. > > 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? ;) > [snip] Fusing/fusion? Compounding?