encapsulation?

Stefan Schwarzer s.schwarzer at ndh.net
Sat Aug 11 18:22:01 EDT 2001


Hello Lloyd

Lloyd Goldwasser schrieb:
> As a recent convert to Python (I have C, Objective-C, and Scheme, among
> others, in my past), I'm curious about its lack of encapsulation.  'Way
> back when I was using Objective-C -- and many other OO languages seem to
> have a similar perspective -- there was a lot of emphasis on the ability
> to keep the contents of objects independent of outside influence except
> via well-delineated mechanisms.  Security and reliability were cited as
> major benefits of this approach: every object knew exactly what the
> outside world was going to see and exactly how the outside world might
> act to change its state. [...]

There was a nice posting/thread on this some time ago:
http://groups.google.com/groups?q=ken+seehof+encapsulation&hl=en&group=comp.lang.python.*&safe=off&rnum=1&selm=39491494.671DC3D9%40sightreader.com

Stefan



More information about the Python-list mailing list