Links added. TOC

This commit is contained in:
David Beazley
2020-05-26 17:52:06 -05:00
parent 08f982aa1f
commit 73d08eca49
9 changed files with 199 additions and 78 deletions

View File

@@ -1,11 +1,20 @@
# Overview
# 5. Inner Workings of Python Objects
The inner workings of Python Objects.
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.
In this section we will cover:
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.
* A few more details about how objects work.
* How objects are represented.
* Details of attribute access.
* Data encapsulation techniques.
* [5.1 Dictionaries Revisited (Object Implementation)](01_Dicts_revisited)
* [5.2 Encapsulation Techniques](02_Classes_encapsulation)
[Contents](../Contents)