Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!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.013 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python,': 0.02; 'c++,': 0.07; 'variables': 0.07; '(aka': 0.09; 'attributes': 0.09; 'dan': 0.09; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'imo,': 0.16; 'subject:class': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'coding': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; '25,': 0.31; 'convenience': 0.31; 'standards': 0.33; 'common': 0.35; 'received:google.com': 0.35; 'nov': 0.38; 'that,': 0.38; 'either': 0.39; 'then,': 0.60; 'tell': 0.60; 'such': 0.63; 'subject:have': 0.80; 'concession': 0.84; 'confusion.': 0.84; 'aka': 0.91; 'demand': 0.91; 'to:none': 0.92 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; bh=/LwVtohRFivTuhYG3MzBBaSAGI1XyqP7ltJEaGM719k=; b=G3wjffpkyN9VFd3K7pNJtouH/JSzEcsusBbaBfjFu/iBCQnqBlMAl3FGUi1jPW/Vx/ T7jZYkOJ7U8F859UAw0s9RiSPCOiLMXRDff9dYsqzuXlRixyNfPoXCA9e5k48EyIHPyA nxhec/5lrMUpniqCODINDYAxZkByYeEzuMrPey56Ux6kTaao5A9OcGD2R2Eqde4BLCi/ Ursbdt2yFzvorUosoED3BrXGAaXdFsm5UHQEhXX7sjHA3w1qM77h05ZVmatNbOyDBdFT 6y1yznsRn5UPMC9aPSTbwy2uS2GtEvfcoN7t5LlJPJq9o9ySN31wVb3mIHjvhZkS8vcZ 5ElA== MIME-Version: 1.0 X-Received: by 10.42.130.194 with SMTP id w2mr895381ics.12.1416836881840; Mon, 24 Nov 2014 05:48:01 -0800 (PST) In-Reply-To: References: <2qn27adjq412n9nff9kv5jh25d1ekkbncp@4ax.com> <8d047ahkrb4uh4qpq1uk74tel4nfc4s8uv@4ax.com> <66b13454-3503-4111-bf8e-58ce79ef00aa@googlegroups.com> <5472b24c$0$12979$c3e8da3$5496439d@news.astraweb.com> Date: Tue, 25 Nov 2014 00:48:01 +1100 Subject: Re: I have no class From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1416836891 news.xs4all.nl 2942 [2001:888:2000:d::a6]:52603 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:81456 On Tue, Nov 25, 2014 at 12:44 AM, Dan Sommers wrote: > And then, at least in C++, you see coding standards that demand that > member variables (aka instance variables aka attributes) be named in > such a way that you can tell that they're member variables and not local > variables (one common convenstion is that all member variables begin > with "m_"). IMO, that's a concession that all that implicitness and > convenience just causes confusion. In Python, the names of all instance > attributes begin with "self." Either that, or it's a concession that bureaucracy has no idea what makes for good code. One or t'other. ChrisA