Why does python not have a mechanism for data hiding?
Ville M. Vainio
vivainio at gmail.com
Sun May 25 07:31:50 EDT 2008
Duncan Booth <duncan.booth at invalid.invalid> writes:
> Or if you code in C++ and they *really* need to get at something you
> made private they will still get at it. I've been there and done
> that: 'private' in languages which have it is rarely an advantage
> and frequently a pain.
Indeed. In C++, they recommend the "pimpl idiom" (private
implementation), which actually has real advantages ;-)
More information about the Python-list
mailing list