Why can't Lists be private variables in a class

Uwe Grauer news at grauer-online.de
Sun Mar 7 09:28:28 EST 2004


Neal,

question was: Why can't Lists be private variables in a class

Your answer is wrong in this context.

Uwe

Neal Holtz wrote:
> 
> 
> Because of 'Private name mangling' (identifiers beginning with '__' and not ending
> in '__' are considered private to the class) ?
> 
> See
>                http://www.python.org/doc/2.3.3/ref/atom-identifiers.html



More information about the Python-list mailing list