Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.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.026 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'subject:not': 0.03; 'subject:Python': 0.06; '__init__': 0.09; 'arguments': 0.09; 'args,': 0.16; 'article:': 0.16; 'benjamin': 0.16; 'conclusion:': 0.16; 'positional': 0.16; 'subject: \n ': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'bit': 0.19; 'subject:problem': 0.24; '15,': 0.26; 'pass': 0.26; 'read,': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'generally': 0.29; 'message-id:@mail.gmail.com': 0.30; 'keywords,': 0.31; 'url:05': 0.31; 'subject:with': 0.35; 'advice': 0.35; 'received:209.85': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'keyword': 0.36; 'received:209': 0.37; 'to:addr:python- list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'url:26': 0.68; 'url:2011': 0.75; 'article': 0.77; 'url:wordpress': 0.78; 'oscar': 0.84; 'subject: *': 0.84; 'subject:skip:o 10': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=lRLYMnMlySAKZoL6G7X18ZU51I0gQ66TvITIK/HXHJI=; b=zFFtz4nIcf04+Y6cUFWi5p1kobWifkD7n+JQtD7fb61XC/MBNW6esEZFvZO3Vk3Syg 8bhqyTt5/Lp6nnUtVOrYfSU9QYvZPW088dRidvG29yFfLUaSa7WbhsRWA0bRmL69EgCB T+kGCFqN/J5PvQGzH19T3/Z20jInDAIbr0qv4rgvDWZpiiJcQFxwVUEz+SsrD48B8TJc wy6x+RRtF7tlfZn+K06qjeMTjei9UCjDNMISGdVnuhUiYlbw2M6x+UqgLiBhjdSB3qaI 7p7or/ss4asvuJ38vdcF/DwVKZQBI5r+rp+aIB3to+g67TZftwUsJiZ6YcEUljMPLtX3 RQFw== X-Received: by 10.66.144.98 with SMTP id sl2mr40112569pab.92.1368632535193; Wed, 15 May 2013 08:42:15 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Ian Kelly Date: Wed, 15 May 2013 09:41:35 -0600 Subject: Re: Python 2.7.x - problem with obejct.__init__() not accepting *args and **kwargs To: Python Content-Type: text/plain; charset=ISO-8859-1 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1368632544 news.xs4all.nl 15918 [2001:888:2000:d::a6]:54829 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:45354 On Wed, May 15, 2013 at 6:16 AM, Oscar Benjamin wrote: > I don't generally use super() but I did see some advice about it in > this article: > https://fuhm.net/super-harmful/ > > From the conclusion: > "Never use positional arguments in __init__ or __new__. Always use > keyword args, and always call them as keywords, and always pass all > keywords on to super." While that article is a good read, this one is a bit better on giving advice about how to practically use super: http://rhettinger.wordpress.com/2011/05/26/super-considered-super/