On Tue, Sep 11, 2012 at 2:53 PM, <<a href="mailto:e.doxtator@gmail.com">e.doxtator@gmail.com</a>> wrote:<br>> On Tuesday, September 11, 2012 2:06:45 PM UTC-5, Ian wrote:<br>>> Single leading underscore is a convention indicating that the name<br>
>> should be considered private and not used externally. It's a softer<br>>> version of the double leading underscore that means basically the same<br>>> thing but has syntactic significance.<br>><br>
> Thank you!<br>><br>> PEP 8 says this is bad form. What do you think?<br><br>Where are you seeing that? It says:<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
Use one leading underscore only for non-public methods and instance variables.<br><br>To avoid name clashes with subclasses, use two leading underscores to invoke Python's name mangling rules.<br><br>... Generally, double leading underscores should be used only to avoid name conflicts with attributes in classes designed to be subclassed.<br>
</blockquote><br>So a single leading underscore is the preferred style for non-public<br>methods and attributes.<br>