Will python never intend to support private, protected and public?
Thu Sep 29 01:39:32 CEST 2005
Mike Meyer <mwm at mired.org> writes:
> > Generally that sounds reasonable. Obviously there are other examples
> > when (e.g. for security) you have to make sure that variables can't be
> > read by other classes, e.g. you have a class that stores a capability
> > (or a password) in an instance variable, and uses it for privileged
> > operations.
> If you can't trust the code that shares your address space, you're in
> a world of hurt for security. Compile-time restrictions don't matter
> for squat - you need serious restrictions on what the program can do
> at runtime.
You need both.
More information about the Python-list