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

Simon Brunning simon.brunning at gmail.com
Thu Sep 29 10:52:08 EDT 2005


On 9/29/05, en.karpachov at ospaz.ru <en.karpachov at ospaz.ru> wrote:
> What if the access to that variable was forbidden for reasons you never
> foresaw? What if the class author decide to remove the variable in the next
> version of the class, because it's not an interface, but only a part of the
> class implementation?

Then your code breaks. You can't say you weren't warned.

But if too much is made private, chances are you could never get your
code working in the first place. This has happened to me several times
when using 3rd party Java components. Serves us right for using closed
source libraries, I suppose, but that wasn't my decision.

--
Cheers,
Simon B,
simon at brunningonline.net,
http://www.brunningonline.net/simon/blog/



More information about the Python-list mailing list