by jonhohle · 15y ago · 0 comments
Python is missing encapsulation and message passing. It's object model seems to be similar to something like PHP or JavaScript: objects are essentially hashes. In practice, that's not a huge deal, but they aren't quite the same.
This is not important for beginning programmers, but for programmers thinking about their toolset more information can only help.
The Python equivalents are namespaces and methods.
Python doesn't subscribe to protecting the code from the programmer, like some of the more BSD languages. Python does encapsulate objects as a single namespace but it's a transluscent encapsulation."
http://diveintopython.org/object_oriented_framework/private_...
Does that count for encapsulation?