About the use of **args
Fredrik Lundh
fredrik at pythonware.com
Wed Dec 10 09:06:38 EST 2003
Jacek Generowicz wrote:
> I find the suggestion that a mangled name is somehow "more private"
> than one with a single leading underscore, mildly insulting to the
> clients of your code. The implcation is that they can neither work out
> the (very complicated and cryptic[*]) mangling scheme, not use dir().
no, the implication is that they can use their own __variables without
having to think about what you're calling your private parts.
in contrast, a _variable is not hidden at all.
</F>
More information about the Python-list
mailing list