Why does python not have a mechanism for data hiding?

Hrvoje Niksic hniksic at xemacs.org
Thu Jun 5 17:57:53 EDT 2008


"Russ P." <Russ.Paielli at gmail.com> writes:

> By the way, my recollection is that in C++ access defaults to private
> if nothing is declared explicity. So normally the "private"
> declaration is unnecessary. If it is left out, your little trick won't
> work.

How about #define class struct



More information about the Python-list mailing list