Single leading dash in member variable names?

Ian Kelly ian.g.kelly at gmail.com
Wed Sep 12 12:52:21 EDT 2012


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



More information about the Python-list mailing list