Class design (information hiding)
Gregor Horvath
gh at gregor-horvath.com
Fri Sep 7 07:41:07 EDT 2007
Alexander Eisenhuth schrieb:
>
> I'm wodering how the information hiding in python is ment. As I
> understand there doesn't exist public / protected / private mechanism,
> but a '_' and '__' naming convention.
>
> As I figured out there is only public and private possible as speakin in
> "C++ manner". Are you all happy with it. What does "the zen of python"
> say to that design? (protected is useless?)
My favourite thread to this FAQ:
http://groups.google.at/group/comp.lang.python/browse_thread/thread/2c85d6412d9e99a4/b977ed1312e10b21#b977ed1312e10b21
Greg
More information about the Python-list
mailing list