Why does python not have a mechanism for data hiding?
apardon at forel.vub.ac.be
Wed Jun 4 14:36:48 CEST 2008
On 2008-06-04, cokofreedom at gmail.com <cokofreedom at gmail.com> wrote:
>> But the leading underscore doesn't tell you whether it is your own
>> private date, which you can use a you see fit, or those of someone
>> else, which you have to be very carefull with.
>> Antoon Pardon
> Well how is that different from public accessor and mutators of
> private variables?
Public accessor and mutators for private variables is a bad idea.
So I don't understand what point you are trying to make by suggesting
that the use of an underscore is just like it in this regard.
More information about the Python-list