Why does python not have a mechanism for data hiding?
pavlovevidence at gmail.com
Tue Jun 3 00:04:30 CEST 2008
On Jun 2, 4:50 pm, "Russ P." <Russ.Paie... at gmail.com> wrote:
> On Jun 2, 6:41 am, Carl Banks <pavlovevide... at gmail.com> wrote:
> > You are not realizing that only useful(**) thing about data hiding is
> > that some code has access to the data, other code does not. If you
> > "hide" data equally from everyone it's just a useless spelling change.
> I think you're missing the point.
Well that's nice: you're accusing me of missing the point after having
quoted something I wrote as if it represented by own views, even
though I footnoted it and said I was only doing it for the sake of
argument. Perhaps, outside this discussion, I am totally getting "the
I can't tell, though, because I read your post twice and I have no
idea what you consider "the point" to be.
Best as I can tell you are claiming that data hiding isn't important,
but then you go on to imply Python is blemished because it doesn't
hide data. It really makes no sense: perhaps you can help us out by
giving us an example of something that illustrates what you're saying?
(FWIW, my actual view on the matter is I don't give a lick about data
hiding or marking internals.)
More information about the Python-list