Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1a.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.057 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'subject:skip:s 10': 0.05; 'namespace': 0.09; 'cc:addr:python-list': 0.10; 'argument': 0.15; 'downside': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'kwargs.': 0.16; 'think?': 0.16; 'wrote:': 0.16; 'instance,': 0.18; 'cc:2**0': 0.21; 'cc:addr:python.org': 0.21; '2015': 0.23; 'header:In-Reply-To:1': 0.24; 'message- id:@mail.gmail.com': 0.28; 'exists,': 0.29; 'fri,': 0.31; 'change,': 0.33; 'received:google.com': 0.34; 'subject:" ': 0.36; 'subject:: ': 0.37; '12,': 0.37; 'rather': 0.38; 'pm,': 0.39; 'your': 0.60; "you'll": 0.61; 'providing': 0.61; 'thomas': 0.63; 'subject:Get': 0.66; 'chrisa': 0.84; 'injecting': 0.84; 'stronger': 0.84; 'subject:improve': 0.84; 'to:none': 0.90 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type:content-transfer-encoding; bh=afaMiyhBmGvra3ahORs/9LuZUDg6bohDFTh4Vq9mzyw=; b=Gfa2L0rALfKTadaCPwx97fksEBalH4oSPmJqhxqIShocxvixHl5YM3PwIS/ReUmWlW AagU06XAxPp7wB7PSgq769OWYxWiX1nSKdU9qr5DV/bLj/BOmGKhpnUJfmpRMQo16O3b of0foGQt8teNQblWiow1heNKSqczfMN9O4aDdbCHzd9z/SbgtNWP5bRljDMqOHCdZYWy 6phhE3uKprfS9jkc3z6r/YQDTnaj3GqRj1mEyHBi/TN32kBS9/qdeEa9Tu2jdT1RscB7 Yr2vvhDqVBS2QMOqu8ZOfozbPLfKwR9M4T0lLe3nLZuErl88gvr7pYRWtDcljjz6EYeN 2r6Q== MIME-Version: 1.0 X-Received: by 10.42.43.199 with SMTP id y7mr15746344ice.12.1434108511431; Fri, 12 Jun 2015 04:28:31 -0700 (PDT) In-Reply-To: <4d336971-d986-4e21-85a2-ddc8ee995c7e@googlegroups.com> References: <4d336971-d986-4e21-85a2-ddc8ee995c7e@googlegroups.com> Date: Fri, 12 Jun 2015 21:28:31 +1000 Subject: Re: Get classes from "self.MyClass" to improve subclassability From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1434108514 news.xs4all.nl 2839 [2001:888:2000:d::a6]:52920 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:92511 On Fri, Jun 12, 2015 at 9:12 PM, Thomas G=C3=BCttler wrot= e: > I prefer "self.Namespace()" to namespace kwargs. > > What do you think? Given that the namespace argument already exists, and you're proposing a change, you'll need a much stronger justification than mere preference. What's the downside of providing your own instance, rather than injecting a class? ChrisA