Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.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.122 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.76; '*S*': 0.00; 'dependency': 0.07; 'given,': 0.09; 'subject:python': 0.14; 'subject:class': 0.16; 'subject:object': 0.16; 'subject:type': 0.16; 'wrote:': 0.16; 'examples': 0.18; 'lawrence': 0.22; '2015': 0.23; 'slightly': 0.23; 'header:In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.28; 'received:google.com': 0.34; 'could': 0.35; 'to:addr:python- list': 0.35; 'instance': 0.35; 'replaced': 0.35; 'but': 0.36; 'subject:: ': 0.37; 'tue,': 0.38; 'pm,': 0.39; 'to:addr:python.org': 0.39; 'mark': 0.40; 'video': 0.61; 'taking': 0.62; 'show': 0.62; 'url:26': 0.66; 'url:v': 0.72; 'url:youtube': 0.72; 'url:2011': 0.75; 'url:watch': 0.78; 'url:wordpress': 0.79; 'to:name:python': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=HhxzGriInE40Aro5mupPd05HrtBPJmcTjSYwTZRZAhI=; b=Iqg4M/7zfRave6l9aq1m5lDFY8IAQJhMB8kFhSjOi7SUOZkPoBt/i2/1C+RyRJDPc4 DYAJM5aTYKhwpQQ52d2pfbXC3aCnrtGBQ42j7FUxF/suaWLSc1jHFf86gGhZGJxMpNes BzdAMJQGH9XzvKBwqbxKGbo2RA9er6k+oZGjYWoRFx8X8TivP0kP3jXS7lYiXpnDKILP xK2WjQehEMpwTbDeBXYENIS5HE5FwzkQ1sNXMEEi+inK9G7YZJJe0JKjAurxUk/3uhS7 RvDOYk2alb+Cm2j4yglELWDm+bOVmk8o/+Vv9ZUi9bYBE6317HfL7bhqlTz17G7KzTq6 hqYA== X-Received: by 10.107.6.136 with SMTP id f8mr35800960ioi.61.1433292598468; Tue, 02 Jun 2015 17:49:58 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <14976c1b-a620-426f-b529-41a3c04e9c1a@googlegroups.com> <48fc36e9-fa67-45d5-9864-0921b7e819ce@googlegroups.com> <556d931a$0$12991$c3e8da3$5496439d@news.astraweb.com> <556de143$0$13009$c3e8da3$5496439d@news.astraweb.com> <%9mbx.608935$JH2.445461@fx11.am4> <914115ea-0f93-4929-b325-5b3f78f5d9f1@googlegroups.com> From: Ian Kelly Date: Tue, 2 Jun 2015 18:49:17 -0600 Subject: Re: Everything is an object in python - object class and type class To: Python Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1433292601 news.xs4all.nl 2920 [2001:888:2000:d::a6]:48564 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:91915 On Tue, Jun 2, 2015 at 3:47 PM, Mark Lawrence wrote: > The classic response to "Super Considered Harmful" for those who may be > interested is > https://rhettinger.wordpress.com/2011/05/26/super-considered-super/ and > recently https://www.youtube.com/watch?v=EiOglTERPEo I feel slightly cheated. In the video he promises to show how to do dependency injection using super, but in both of the examples given, every instance of "super()" could simply be replaced with "self" and the result would be the same. That's just taking advantage of the MRO, not super.