Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Single leading dash in member variable names?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Erik Max Francis  
View profile  
 More options Sep 11 2012, 6:02 pm
Newsgroups: comp.lang.python
From: Erik Max Francis <m...@alcyone.com>
Date: Tue, 11 Sep 2012 15:02:31 -0700
Local: Tues, Sep 11 2012 6:02 pm
Subject: Re: Single leading dash in member variable names?
On 09/11/2012 01:53 PM, e.doxta...@gmail.com wrote:

> On Tuesday, September 11, 2012 2:06:45 PM UTC-5, Ian wrote:
>> On Tue, Sep 11, 2012 at 12:45 PM,  I wrote:
>>> What is the significance of the leading underscore in "self._bongo"?  I've seen this a few times and, after looking through PEP 8, I didn't see anything relevant, but I could have missed it.

>> Single leading underscore is a convention indicating that the name
>> should be considered private and not used externally.  It's a softer
>> version of the double leading underscore that means basically the same
>> thing but has syntactic significance.

> Thank you!

> PEP 8 says this is bad form.  What do you think?

Where does it say that?

--
Erik Max Francis && m...@alcyone.com && http://www.alcyone.com/max/
  San Jose, CA, USA && 37 18 N 121 57 W && AIM/Y!M/Jabber erikmaxfrancis
   I will always remember / This moment
    -- Sade


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.