Question about idiomatic use of _ and private stuff.
Bruno Desthuilliers
bdesth.quelquechose at free.quelquepart.fr
Sun Feb 25 16:15:44 EST 2007
Troy Melhase a écrit :
>> Why do people sometimes use one leading underscore?
>
>
> Many folks like to use the single leading underscore to emphasize that
> the attribute isn't part of the normal way to use the class or
> instance.
>
> It's bad style in my opinion, but I'm probably in the minority.
You are, definitively. While it's not technically part of the language
syntax, you can practically consider it as such.
More information about the Python-list
mailing list