Accessors in Python (getters and setters)

Diez B. Roggisch deets at nospam.web.de
Wed Jul 19 17:52:13 EDT 2006


Ed Jensen schrieb:
> Diez B. Roggisch <deets at nospam.web.de> wrote:
>> Ah, you mean like in JAVA
> 
> Java is not an acronym.  That is: it's "Java", not "JAVA".

Now THAT was an important information RIGHT on topic.

>> where the compiler prevents you from accessing
>> private variables, but the runtime allows access to these very variables
>> via reflection? 
> 
> Java does not allow access to private members via reflection.

For somebody nitpicking on natural language usage to a non-native 
speaker, you show an impressive lack of knowledge in the actual subject 
discussed.

http://www.onjava.com/pub/a/onjava/2003/11/12/reflection.html


Diez



More information about the Python-list mailing list