June 2019
Beginner to intermediate
770 pages
19h 24m
English
We'll now look at the three canonical special methods for attribute access: __getattr__(), __setattr__(), and __delattr__(). Additionally, we'll acknowledge the __dir__() special method to reveal attribute names. We'll defer __getattribute__() to the next section.
The default behavior shown in this section is as follows:
Read now
Unlock full access