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

Paul Rubin http
Fri Sep 30 18:00:39 EDT 2005


Rocco Moretti <roccomoretti at hotpop.com> writes:
> There is little in the way of technical problems that are solved by
> language level enforcement of private variables. The issues in
> question are mostly social ones, and if you're not reading and
> following the documented interface, stopping private variable access
> is not going to prevent most of your problems.

Well, that says you consider both code auditing and debugging to be
social problems rather than technical ones.  Maybe that's reasonable,
maybe not; either way, both are important in the real world.

There is also the issue of applet sandboxes which rely on the
enforcement.  That is definitely a technical problem.  You can't
really write a scriptable web browser in Python without an extra level
of contortions (compared to Java) to keep user scripts from taking
over the browser.  This is what the now-defunct Bastion.py tried to solve.



More information about the Python-list mailing list