Why does python not have a mechanism for data hiding?

Neil Hodgson nyamatongwe+thunder at gmail.com
Mon May 26 05:12:05 EDT 2008


Russ P.:
> The encapsulation wouldn't be as
> airtight as "private" in C++, so clients could still get access ...

    C++ private is not airtight as you have access to pointer arithmetic 
as well as
#define private public

    Neil



More information about the Python-list mailing list