Contents | Prev (4 Classes and Objects) | Next (6 Generators)
This section covers some of the inner workings of Python objects.
Programmers coming from other programming languages often find
Python's notion of classes lacking in features. For example, there is
no notion of access-control (e.g., private, protected), the whole
self
argument feels weird, and frankly, working with objects
sometimes feel like a "free for all." Maybe that's true, but we'll
find out how it all works as well as some common programming idioms to
better encapsulate the internals of objects.
It's not necessary to worry about the inner details to be productive. However, most Python coders have a basic awareness of how classes work. So, that's why we're covering it.
Contents | Prev (4 Classes and Objects) | Next (6 Generators)