Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #28984

Re: Single leading dash in member variable names?

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 <ian.g.kelly@gmail.com>
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 <c0a54ccd-36bb-4414-970f-67d59d8dfd6f@googlegroups.com>
References <2cb240e2-7992-44eb-84cf-1aba5a411ee4@googlegroups.com> <mailman.514.1347390405.27098.python-list@python.org> <mailman.516.1347396810.27098.python-list@python.org> <sY-dnYkrKKdqKdLNnZ2dnUVZ5sWdnZ2d@giganews.com> <c0a54ccd-36bb-4414-970f-67d59d8dfd6f@googlegroups.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Wed, 12 Sep 2012 10:52:21 -0600
Subject Re: Single leading dash in member variable names?
To Python <python-list@python.org>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.571.1347468774.27098.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Wed, Sep 12, 2012 at 9:23 AM, <e.doxtator@gmail.com> 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.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Single leading dash in member variable names? e.doxtator@gmail.com - 2012-09-11 11:45 -0700
  Re: Single leading dash in member variable names? Ian Kelly <ian.g.kelly@gmail.com> - 2012-09-11 13:06 -0600
    Re: Single leading dash in member variable names? e.doxtator@gmail.com - 2012-09-11 13:53 -0700
      Re: Single leading dash in member variable names? Terry Reedy <tjreedy@udel.edu> - 2012-09-11 17:34 -0400
    Re: Single leading dash in member variable names? e.doxtator@gmail.com - 2012-09-11 13:53 -0700
      Re: Single leading dash in member variable names? Erik Max Francis <max@alcyone.com> - 2012-09-11 15:02 -0700
        Re: Single leading dash in member variable names? Tim Chase <python.list@tim.thechases.com> - 2012-09-12 05:49 -0500
        Re: Single leading dash in member variable names? e.doxtator@gmail.com - 2012-09-12 08:23 -0700
          Re: Single leading dash in member variable names? Ian Kelly <ian.g.kelly@gmail.com> - 2012-09-12 10:52 -0600
          Re: Single leading dash in member variable names? mdengler@gmail.com - 2012-09-12 09:53 -0700
        Re: Single leading dash in member variable names? Ian Kelly <ian.g.kelly@gmail.com> - 2012-09-12 09:23 -0600
    Re: Single leading dash in member variable names? aahz@pythoncraft.com (Aahz) - 2012-11-10 07:41 -0800

csiph-web