Will python never intend to support private, protected and public?

Antoon Pardon apardon at forel.vub.ac.be
Fri Sep 30 02:52:50 EDT 2005


Op 2005-09-29, Bill Mill schreef <bill.mill at gmail.com>:
>
> But, if your users can't figure out that they shouldn't be changing
> the variable called t._test__i without expecting side effects, what do
> you think of the users of your class?
>
> Python is for consenting adults.

No it is not. Consenting means you had the choice. Python doesn't
give you the choice not to consent. Unless of course you write
it as a C-extension, then you can hide all you want.

-- 
Antoon Pardon



More information about the Python-list mailing list