OO in Python? ^^

Aahz aahz at pythoncraft.com
Sun Dec 11 18:40:15 CET 2005

In article <dnhins$unl$02$1 at news.t-online.com>,
Matthias Kaeppler  <"matthias at finitestate dot org"> wrote:
>Why would I want to use an attribute in Python, where I would use 
>getters and setters in Java? I know that encapsulation is actually just 
>a hack in Python (common, "hiding" an implementation detail by prefixing 
>it with the classname so you can't access it by its name anymore? Gimme 
>a break...), but is that a reason to only write white box classes? ^^

"Simple is better than complex."
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Don't listen to schmucks on USENET when making legal decisions.  Hire
yourself a competent schmuck."  --USENET schmuck (aka Robert Kern)

More information about the Python-list mailing list