Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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; 'okay': 0.09; '>>>': 0.12; 'wrote:': 0.14; '(remember': 0.16; 'actualy': 0.16; 'finney': 0.16; 'furman': 0.16; 'received:192.168.200': 0.16; 'whole,': 0.16; 'possibly': 0.16; 'describes': 0.19; 'writes:': 0.20; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.20; 'header:In-Reply-To:1': 0.22; 'cc:addr:python-list': 0.22; 'classes': 0.26; 'object': 0.27; 'implement': 0.30; 'cc:addr:python.org': 0.31; 'model': 0.31; 'carl': 0.31; 'another': 0.32; 'source': 0.32; 'using': 0.34; 'received:192': 0.34; 'header:User-Agent:1': 0.35; 'received:192.168': 0.37; 'some': 0.37; 'but': 0.38; 'used': 0.38; 'owns': 0.60; 'taking': 0.61; 'upon': 0.63; 'skip:\xe2 10': 0.72; 'composition': 0.84 X-IronPort-AV: E=Sophos;i="4.64,286,1301868000"; d="scan'208";a="1436552" X-Virus-Scanned: amavisd-new at zimbra.sequans.com Date: Fri, 29 Apr 2011 11:23:39 +0200 From: Jean-Michel Pichavant User-Agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100328) MIME-Version: 1.0 To: Ben Finney Subject: Re: Composition instead of inheritance References: <87oc3pk9h0.fsf@benfinney.id.au> In-Reply-To: <87oc3pk9h0.fsf@benfinney.id.au> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list 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: 24 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1304069025 news.xs4all.nl 32470 [::ffff:82.94.164.166]:45383 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:4301 Ben Finney wrote: > Ethan Furman writes: > > >> 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? ;) >> > > (Remember that Frankenstein was not the monster, but the scientist.) > > “Hybrid”? > > Actualy this story is about the villagers being the monsters :o) JM