[Tutor] The use of leading underscore in names

Kent Johnson kent37 at tds.net
Tue May 12 15:45:47 CEST 2009


On Tue, May 12, 2009 at 9:24 AM, The Green Tea Leaf
<thegreentealeaf at gmail.com> wrote:
> The Python style guide says
>
> "Use one leading underscore only for non-public methods and instance variables."
>
> Have I understood correctly if I say that this is purely a convention
> and there is nothing in the language that says that it should be this
> way and that nothing special happens (except that it affects the 'from
> X import *'). And no I don't intend to break this, I just want to
> check that I've understood correctly.

Yes, that is correct.

Kent


More information about the Tutor mailing list