Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'syntax': 0.03; 'that?': 0.05; 'url:pycon': 0.07; 'it;': 0.09; 'pep': 0.09; 'sep': 0.09; '"code': 0.16; 'erik': 0.16; 'subject:Single': 0.16; 'subject:member': 0.16; 'subject:variable': 0.16; 'think?': 0.16; 'underscore.': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'section.': 0.17; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'url:python': 0.32; 'says': 0.33; '11,': 0.33; 'to:addr:python-list': 0.33; 'form.': 0.33; 'agree': 0.34; 'received:google.com': 0.34; 'pm,': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; '12,': 0.36; 'bad': 0.37; 'does': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'where': 0.40; 'header:Received:5': 0.40; 'leading': 0.61; 'skip:n 10': 0.63; 'subject:leading': 0.84; 'to:name:python': 0.84; 'url:2007': 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=d9shT1yD+wL2UXy59W5K3mPCL6wn/1o53FIIbgGBrKQ=; b=EhSW+rOsDcb0QyIyDPiYQNQMRaUvzPq3RNT+DRFNf6vmkS/+TViuWKxhkltgxeRDzf C/o4ZEh9SHMlw++5XeO809AYp4kFW8uxZciFUwitjsq/KaNTQjyEr8YZHKsuRC/9GlgL racHTUxg+MYAm/ZYt4QNXkfSs67KOB1gnLG0ws1S0l87bLwGi1wIYdR77FDel/ntNluF hZBfvsxYtFJL/ySHrmabEF37mHexFezFkjedp2Wa3BjZBGDYttk2lZc+W5b8B0v2mMy4 Z1T8wMh7Vup89R6lkrXMKfSK/DNeTXGAO1LxkqPss8Ww75aGC5uHAM4OkKKW3RMvEGx9 akxw== MIME-Version: 1.0 In-Reply-To: References: <2cb240e2-7992-44eb-84cf-1aba5a411ee4@googlegroups.com> From: Ian Kelly Date: Wed, 12 Sep 2012 10:52:21 -0600 Subject: Re: Single leading dash in member variable names? 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: 1347468774 news.xs4all.nl 6950 [2001:888:2000:d::a6]:51796 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:28984 On Wed, Sep 12, 2012 at 9:23 AM, wrote: > > On Tuesday, September 11, 2012 5:02:31 PM UTC-5, Erik Max Francis wrote: > > On 09/11/2012 01:53 PM, me wrote: > > > PEP 8 says this is bad form. What do you think? > > > > > > > > Where does it say that? > > Apologies. It's in David Goodger's "Code Like A Pythonista" in the "Naming" section. (http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html#naming) That's arguing against double leading underscore, not single leading underscore. I pretty much agree with it; I rarely use the name-mangling syntax myself.