Will python never intend to support private, protected and public?
Gregor Horvath
g.horvath at gmx.at
Wed Sep 28 11:31:18 EDT 2005
Paul Rubin schrieb:
>
> Name mangling is a poor substitute for private variables. If you want
> to be able to share private variables with other classes under certain
> circumstances, it's better to use something like C++'s "friend"
> declaration, where you can export the variables to a specific other class.
That assumes that you always know for sure that the given variable will
always be used as a private/friend variable in the lifecycle of the
software.
Software is too complictated to know everything in advance.
"Software lives" and totalitarian laws destroy easy living.
--
Greg
More information about the Python-list
mailing list