Will python never intend to support private, protected and public?
Wed Sep 28 14:35:25 CEST 2005
Simon Brunning <simon.brunning at gmail.com> writes:
> Oh, there are ways around private and protected, even in Java. CGLIB
> spings to mind. But you'd be wise to follow the rules, especially if
> you work in a team.
I don't see anything on the CGLIB web page (in about 1 minute of
looking) that says it can get around private and protected. It looks
like something that disassembles class files and reassembles them into
new classes from them with additional interfaces. That's a lot
different than being able to reach into an already-existing class
instance and get at its private variables.
The Sun JVM has some setting that turns off strict enforcement but
with enforcement on, private is supposed to be private. The whole
concept of applet security depends on that.
More information about the Python-list