Re: Will python never intend to support private, protected and public?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

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

From: Paul Rubin <//phr.cx@NOSPAM.invalid>
Date: Sat Oct 01 2005 - 00:00:39 CEST

Rocco Moretti <roccomoretti@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.
Received on Sat Oct 15 04:01:19 2005