Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!hq-usenetpeers.eweka.nl!81.171.88.15.MISMATCH!eweka.nl!lightspeed.eweka.nl!194.134.4.91.MISMATCH!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; 'case.': 0.05; 'append': 0.07; 'suffix': 0.07; 'python': 0.09; 'url:github': 0.09; 'constructs': 0.16; 'subject:class': 0.16; 'to:2**1': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; '[1]': 0.27; 'c++': 0.27; 'skip:@ 10': 0.27; 'classes': 0.30; 'usually': 0.30; 'received:209.85.160.46': 0.32; 'to:no real name:2**1': 0.32; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'message-id:@gmail.com': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'side': 0.61; 'obvious': 0.71 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=7Q97hU15KBkg6EEzQjRtHbpa2Go3hLluwtVDlrSPmvg=; b=wmut14KCM8uxykrP+JKOEbK37UdNUNqsXwV55P8KNHulqMPrwdIj8Jf0AOWcyzME/u 5MpRvfKQPchlWMNakLlS5xTIiUyxX2bfXivbNtZhgTWK2sNp9SG9hBJS5w2UB0QmGWJB FxHtoLXN7B3jgLIymkFbcwaP0wXN6uBeeMNWyJh2NxhTA26XPsg8xaB87bGX1KUCpANt eH/QH9NIl4EKHkAYx/C4HjOyyY7s1alYTFNCAJftPGFHINveEN40idwvZa6Jf2lcJsib oak60aus++2kTjz7Us10osJU+rnN2VN0ihfKdBPaH5o2xOhQpZ9ejvHyj+RvppsqnNWx dTtQ== Date: Tue, 02 Oct 2012 07:05:49 -0700 From: Demian Brecht User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120912 Thunderbird/15.0.1 MIME-Version: 1.0 To: python-list@python.org, ulrich.eckhardt@dominolaser.com Subject: Re: unit testing class hierarchies References: In-Reply-To: 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.15 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1349186759 news.xs4all.nl 6979 [2001:888:2000:d::a6]:33206 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:30633 > [1] in C++ I would call that a "mixin" Mixins are perfectly valid Python constructs as well and are perfectly valid (imho) for this use case. On a side note, I usually append a "Mixin" suffix to my mixin classes in order to make it obvious to the reader. -- Demian Brecht @demianbrecht http://demianbrecht.github.com