Why does python not have a mechanism for data hiding?

Hrvoje Niksic hniksic at xemacs.org
Thu Jun 5 23:57:53 CEST 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